]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
rand: Clarify the crypto_rand_uint() range
authorteor <teor@torproject.org>
Wed, 29 Apr 2020 05:57:44 +0000 (15:57 +1000)
committerteor <teor@torproject.org>
Wed, 29 Apr 2020 11:50:37 +0000 (21:50 +1000)
src/lib/crypt_ops/crypto_rand_numeric.c

index ffbfa2d56c429d64cd39c350e6d94d903877b9ae..b2516c4bdcaa37deef6e1b0764d9d7c4d8d8b559 100644 (file)
@@ -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)
 {