diff options
author | teor <teor@torproject.org> | 2020-04-29 15:57:44 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-29 21:50:37 +1000 |
commit | 6eec43161ad9e072d82da88163e748566b39d127 (patch) | |
tree | 7c18f191c570c47a2c8c2e80f49e7770b0bd58fc /src/lib/crypt_ops | |
parent | 398e0e02474b988fd8600117eaece182a295b546 (diff) | |
download | tor-6eec43161ad9e072d82da88163e748566b39d127.tar.gz tor-6eec43161ad9e072d82da88163e748566b39d127.zip |
rand: Clarify the crypto_rand_uint() range
Diffstat (limited to 'src/lib/crypt_ops')
-rw-r--r-- | src/lib/crypt_ops/crypto_rand_numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/crypt_ops/crypto_rand_numeric.c b/src/lib/crypt_ops/crypto_rand_numeric.c index ffbfa2d56c..b2516c4bdc 100644 --- a/src/lib/crypt_ops/crypto_rand_numeric.c +++ b/src/lib/crypt_ops/crypto_rand_numeric.c @@ -33,8 +33,8 @@ /** * Return a pseudorandom integer chosen uniformly from the values between 0 - * and <b>limit</b>-1 inclusive. limit must be strictly between 0 and - * UINT_MAX. */ + * and <b>limit</b>-1 inclusive. limit must be strictly greater than 0, and + * less than UINT_MAX. */ unsigned crypto_rand_uint(unsigned limit) { |