diff options
author | lloyd <[email protected]> | 2008-05-24 19:14:00 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-05-24 19:14:00 +0000 |
commit | be4c408997cf182d974c33b1c62d7f6605c55f3e (patch) | |
tree | aad4126f540bdb24be1a20b765ca73dbacd2b38c /src/dl_group.cpp | |
parent | 117ee205ea987df26945e28373a66716fee06876 (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.cpp | 2 |
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); } } |