summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1994-12-25 15:33:39 +0000
committerBruce Evans <bde@FreeBSD.org>1994-12-25 15:33:39 +0000
commit6424ff77c2766e2da81986f4a2d6a7ccff033160 (patch)
tree3ad53845d465c07e018fa463a2779bbf781c6d5a /lib/libc
parentc8ac34903cf2a7631bced3190a30a5e7257d5b2a (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/rand48.310
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/gen/rand48.3 b/lib/libc/gen/rand48.3
index 176303dcf795..9fadeb29926b 100644
--- a/lib/libc/gen/rand48.3
+++ b/lib/libc/gen/rand48.3
@@ -71,16 +71,16 @@ such that the values produced lie in the interval [0.0, 1.0).
and
.Fn nrand48
return values of type long in the range
-[-2**31, 2**31-1]. The high-order (32) bits of
-r(n+1) are loaded into the returned value.
+[0, 2**31-1]. The high-order (31) bits of
+r(n+1) are loaded into the lower bits of the returned value, with
+the topmost (sign) bit set to zero.
.Pp
.Fn mrand48
and
.Fn jrand48
return values of type long in the range
-[0, 2**31-1]. The high-order (31) bits of
-r(n+1) are loaded into the lower bits of the returned value, with
-the topmost (sign) bit set to zero.
+[-2**31, 2**31-1]. The high-order (32) bits of
+r(n+1) are loaded into the returned value.
.Pp
.Fn drand48 ,
.Fn lrand48 ,