aboutsummaryrefslogtreecommitdiffstats
path: root/src/dl_group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dl_group.cpp')
-rw-r--r--src/dl_group.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dl_group.cpp b/src/dl_group.cpp
index 7ec591b15..0e37c197e 100644
--- a/src/dl_group.cpp
+++ b/src/dl_group.cpp
@@ -65,7 +65,7 @@ DL_Group::DL_Group(RandomNumberGenerator& rng,
BigInt X;
while(p.bits() != pbits || !is_prime(p, rng))
{
- X = random_integer(rng, pbits);
+ X.randomize(rng, pbits);
p = X - (X % (2*q) - 1);
}
}