diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-05-30 03:13:24 -0700 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-05-30 03:13:24 -0700 |
commit | 4ebd41591d89771a61f2b0ef4aa53cc228125e59 (patch) | |
tree | e2e6684f8059ae320dd631b1e8bb654fd1aaefb4 /src | |
parent | 15dfcf5abaacb3885859dcbe5fa2c29cf259cb0d (diff) |
Fixing BigInt::isPrime.
Diffstat (limited to 'src')
-rw-r--r-- | src/BigInt.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BigInt.cc b/src/BigInt.cc index 0df2e14..3588e06 100644 --- a/src/BigInt.cc +++ b/src/BigInt.cc @@ -604,7 +604,7 @@ Balau::BigInt & Balau::BigInt::do_modpow(const BigInt & a, const BigInt & m) thr bool Balau::BigInt::isPrime() const throw (GeneralException) { int r = 0; - if (mp_prime_is_prime((mp_int *) m_bi, NULL, &r) != MP_OKAY) + if (mp_prime_is_prime((mp_int *) m_bi, 256, &r) != MP_OKAY) throw GeneralException("Error while calling mp_prime_is_prime"); return r == MP_YES; } |