aboutsummaryrefslogtreecommitdiffstats
path: root/src/dl_group.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-24 19:14:00 +0000
committerlloyd <[email protected]>2008-05-24 19:14:00 +0000
commitbe4c408997cf182d974c33b1c62d7f6605c55f3e (patch)
treeaad4126f540bdb24be1a20b765ca73dbacd2b38c /src/dl_group.cpp
parent117ee205ea987df26945e28373a66716fee06876 (diff)
Remove random_integer() and replace it with a BigInt constructor taking a
RandomNumberGenerator reference. Update all callers.
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);
}
}