From 31a74acfd365850d75148ee412b6c665755e9d32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Thu, 8 Feb 2001 12:33:55 +0000 Subject: [PATCH] Another comment change. (Previous comment does not apply for range = 11000000... or range = 100000...) --- crypto/bn/bn_rand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/bn/bn_rand.c b/crypto/bn/bn_rand.c index 38c6e3b4fa..046c21d95a 100644 --- a/crypto/bn/bn_rand.c +++ b/crypto/bn/bn_rand.c @@ -162,7 +162,7 @@ int BN_rand_range(BIGNUM *r, BIGNUM *min, BIGNUM *range) { do { - /* range = 11..._2, so each iteration succeeds with probability > .75 */ + /* range = 11..._2, so each iteration succeeds with probability >= .75 */ if (!BN_rand(r, n, 0, 0)) return 0; } while (BN_cmp(r, range) >= 0); @@ -178,7 +178,7 @@ int BN_rand_range(BIGNUM *r, BIGNUM *min, BIGNUM *range) * (which is either r, r - range, or r - 2*range). * Otherwise, iterate once more. * Since 3*range = 11..._2, each iteration succeeds with - * probability > .75. */ + * probability >= .75. */ if (BN_cmp(r ,range) >= 0) { if (!BN_sub(r, r, range)) return 0; -- 2.25.1