aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/dl_group/dl_group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/dl_group/dl_group.cpp')
-rw-r--r--src/lib/pubkey/dl_group/dl_group.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/dl_group/dl_group.cpp b/src/lib/pubkey/dl_group/dl_group.cpp
index e3c7ac65b..9bab123cb 100644
--- a/src/lib/pubkey/dl_group/dl_group.cpp
+++ b/src/lib/pubkey/dl_group/dl_group.cpp
@@ -240,7 +240,7 @@ DL_Group::DL_Group(RandomNumberGenerator& rng,
Modular_Reducer mod_2q(2*q);
BigInt X;
BigInt p;
- while(p.bits() != pbits || !is_prime(p, rng))
+ while(p.bits() != pbits || !is_prime(p, rng, 128, true))
{
X.randomize(rng, pbits);
p = X - mod_2q.reduce(X) + 1;