summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/BigInt.cc2
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;
}