diff options
author | Bodo Möller <bodo@openssl.org> | 2001-02-08 12:34:08 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-02-08 12:34:08 +0000 |
commit | 792e2ce7f47f90ee18c08da11a25ed907e8d9c33 (patch) | |
tree | 7dce875207f73285327f3db748df48b846e48f9a /crypto/bn/bn_rand.c | |
parent | 395258457182fcfe4ee6f82ee9c74b5d2f3426c8 (diff) |
Another comment change. (Previous comment does not apply
for range = 11000000... or range = 100000...)
Diffstat (limited to 'crypto/bn/bn_rand.c')
-rw-r--r-- | crypto/bn/bn_rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bn/bn_rand.c b/crypto/bn/bn_rand.c index 3873eac689..c5c14130a3 100644 --- a/crypto/bn/bn_rand.c +++ b/crypto/bn/bn_rand.c @@ -190,7 +190,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); @@ -206,7 +206,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; |