aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-04-12 23:49:44 +0000
committerlloyd <[email protected]>2015-04-12 23:49:44 +0000
commit2443574367b824909c727feeb25ee535c830a014 (patch)
treeb95e6da4e8e7c71ad65f095b371cdd0fcb9439e4 /src/lib
parent196b4b3f8bf93c343d59cb69f2b25413bf20b917 (diff)
Fix
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/math/numbertheory/numthry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/numbertheory/numthry.cpp b/src/lib/math/numbertheory/numthry.cpp
index 5fa8d4541..fe943cc6b 100644
--- a/src/lib/math/numbertheory/numthry.cpp
+++ b/src/lib/math/numbertheory/numthry.cpp
@@ -311,7 +311,7 @@ bool is_prime(const BigInt& n, RandomNumberGenerator& rng,
for(size_t i = 0; i != test_iterations; ++i)
{
const BigInt a = BigInt::random_integer(rng, 2, n_minus_1);
- const BigInt y = pow_mod(a);
+ BigInt y = pow_mod(a);
if(mr_witness(std::move(y), reducer, n_minus_1, s))
return false;