summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/rand48.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/rand48.3')
-rw-r--r--lib/libc/gen/rand48.39
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/gen/rand48.3 b/lib/libc/gen/rand48.3
index 3a263c8..1bd315e 100644
--- a/lib/libc/gen/rand48.3
+++ b/lib/libc/gen/rand48.3
@@ -81,7 +81,8 @@ and
.Fn nrand48
functions
return values of type long in the range
-[0, 2**31-1]. The high-order (31) bits of
+[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
@@ -91,7 +92,8 @@ and
.Fn jrand48
functions
return values of type long in the range
-[-2**31, 2**31-1]. The high-order (32) bits of
+[-2**31, 2**31-1].
+The high-order (32) bits of
r(n+1) are loaded into the returned value.
.Pp
The
@@ -100,7 +102,8 @@ The
and
.Fn mrand48
functions
-use an internal buffer to store r(n). For these functions
+use an internal buffer to store r(n).
+For these functions
the initial value of r(0) = 0x1234abcd330e = 20017429951246.
.Pp
On the other hand,
OpenPOWER on IntegriCloud