summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2003-07-31 06:18:24 +0000
committerdas <das@FreeBSD.org>2003-07-31 06:18:24 +0000
commit06982489ad3a235e68ac5ffb02b4e64c73a717c5 (patch)
tree11d180c034ef1932f2d6427ba4da5246066e0b30 /lib
parent07dd39c720b937efa44f6c48262409beaa38263c (diff)
downloadFreeBSD-src-06982489ad3a235e68ac5ffb02b4e64c73a717c5.zip
FreeBSD-src-06982489ad3a235e68ac5ffb02b4e64c73a717c5.tar.gz
The upper end of the range of arc4random(3) is 2**32-1, not 2**31-1.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/arc4random.36
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/gen/arc4random.3 b/lib/libc/gen/arc4random.3
index 42b40a6..27c6fd1 100644
--- a/lib/libc/gen/arc4random.3
+++ b/lib/libc/gen/arc4random.3
@@ -62,9 +62,11 @@ The
.Fn arc4random
function returns pseudo-random numbers in the range of 0 to
.if t 2\u\s731\s10\d\(mi1,
-.if n (2**31)\(mi1,
+.if n (2**32)\(mi1,
and therefore has twice the range of
-.Dv RAND_MAX .
+.Xr rand 3
+and
+.Xr random 3 .
.Pp
The
.Fn arc4random_stir
OpenPOWER on IntegriCloud