From 4ebd41591d89771a61f2b0ef4aa53cc228125e59 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 30 May 2014 03:13:24 -0700 Subject: Fixing BigInt::isPrime. --- src/BigInt.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/BigInt.cc') 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; } -- cgit v1.2.3