aboutsummaryrefslogtreecommitdiffstats
path: root/src/make_prm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/make_prm.cpp')
-rw-r--r--src/make_prm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/make_prm.cpp b/src/make_prm.cpp
index 7d399b825..35d1dde38 100644
--- a/src/make_prm.cpp
+++ b/src/make_prm.cpp
@@ -29,7 +29,7 @@ BigInt random_prime(RandomNumberGenerator& rng,
while(true)
{
- BigInt p = random_integer(rng, bits);
+ BigInt p(rng, bits);
p.set_bit(bits - 2);
p.set_bit(0);