15 lines
523 B
Diff
15 lines
523 B
Diff
============================================================
|
|
--- src/math/numbertheory/numthry.cpp e810b1dace1f2f07c3fceabddb59844a8807d58f
|
|
+++ src/math/numbertheory/numthry.cpp 03df310d0075893ff7b86ca57867fa0f0293c22e
|
|
@@ -285,9 +285,9 @@ bool passes_mr_tests(RandomNumberGenerat
|
|
|
|
u32bit tests = miller_rabin_test_iterations(n.bits(), verify);
|
|
|
|
- BigInt nonce;
|
|
for(u32bit i = 0; i != tests; ++i)
|
|
{
|
|
+ BigInt nonce;
|
|
if(!verify && PRIMES[i] < (n-1))
|
|
nonce = PRIMES[i];
|
|
else
|