diff options
author | lloyd <[email protected]> | 2014-04-13 19:20:36 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-04-13 19:20:36 +0000 |
commit | 340cc7f520ef95aeb7a4692357b870003dd7f0f8 (patch) | |
tree | 28c9c1dfb02e99b2c378aae142b8e1e9a83ec276 /src/lib/math/bigint | |
parent | c30ff3c1b1308346de33397ab282d1f2831d0936 (diff) |
Use 20 Miller-Rabin iterations regardless of the size of the integer. This
provides a much better worst-case error bound. Also take the nonce from anywhere
in the usable range rather than limiting the bit size.
Diffstat (limited to 'src/lib/math/bigint')
-rw-r--r-- | src/lib/math/bigint/bigint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/bigint/bigint.h b/src/lib/math/bigint/bigint.h index a1164bf92..0d9b43357 100644 --- a/src/lib/math/bigint/bigint.h +++ b/src/lib/math/bigint/bigint.h @@ -430,7 +430,7 @@ class BOTAN_DLL BigInt * @param rng a random number generator * @param min the minimum value * @param max the maximum value - * @return random integer between min and max + * @return random integer in [min,max) */ static BigInt random_integer(RandomNumberGenerator& rng, const BigInt& min, |