From 0724c3923dea1969766405f356c03c1e0da1edc7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 4 Jan 2006 21:21:50 +0000 Subject: [PATCH] Helpful comment. Via Megan Anneke Wachs . --- src/lib/random.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/random.c b/src/lib/random.c index 63d798d..c22414e 100644 --- a/src/lib/random.c +++ b/src/lib/random.c @@ -73,7 +73,9 @@ random_bytes (void *buf_, size_t size) } } -/* Returns a pseudo-random unsigned long. */ +/* Returns a pseudo-random unsigned long. + Use random_ulong() % n to obtain a random number in the range + 0...n (exclusive). */ unsigned long random_ulong (void) { -- 2.30.2