diff options
-rw-r--r-- | src/math/numbertheory/numthry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/numbertheory/numthry.cpp b/src/math/numbertheory/numthry.cpp index 721d4a833..448681333 100644 --- a/src/math/numbertheory/numthry.cpp +++ b/src/math/numbertheory/numthry.cpp @@ -292,7 +292,7 @@ bool passes_mr_tests(RandomNumberGenerator& rng, nonce = PRIMES[i]; else { - while(nonce < 2 && nonce >= (n-1)) + while(nonce < 2 || nonce >= (n-1)) nonce.randomize(rng, NONCE_BITS); } |