aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/random.3
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-07-02 23:52:20 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-07-02 23:52:20 +0000
commit1a0a934547909744a6a2fa4cfd5b795ec6394f05 (patch)
tree23294a96f715e1e5bc35c1029ec151c90ee95b96 /lib/libc/stdlib/random.3
parente37a7c5f5a689c6f1994a879f5fa86066b7aac82 (diff)
downloadsrc-1a0a934547909744a6a2fa4cfd5b795ec6394f05.tar.gz
src-1a0a934547909744a6a2fa4cfd5b795ec6394f05.zip
Mechanically kill hard sentence breaks.
Notes
Notes: svn path=/head/; revision=131504
Diffstat (limited to 'lib/libc/stdlib/random.3')
-rw-r--r--lib/libc/stdlib/random.312
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3
index 66ccd55f99f0..a1dbf8a92348 100644
--- a/lib/libc/stdlib/random.3
+++ b/lib/libc/stdlib/random.3
@@ -81,9 +81,11 @@ functions.
The difference is that
.Xr rand 3
produces a much less random sequence \(em in fact, the low dozen bits
-generated by rand go through a cyclic pattern. All the bits generated by
+generated by rand go through a cyclic pattern.
+All the bits generated by
.Fn random
-are usable. For example,
+are usable.
+For example,
.Sq Li random()&01
will produce a random binary
value.
@@ -115,13 +117,15 @@ a fixed seed.
The
.Fn initstate
routine allows a state array, passed in as an argument, to be initialized
-for future use. The size of the state array (in bytes) is used by
+for future use.
+The size of the state array (in bytes) is used by
.Fn initstate
to decide how sophisticated a random number generator it should use \(em the
more state, the better the random numbers will be.
(Current "optimal" values for the amount of state information are
8, 32, 64, 128, and 256 bytes; other amounts will be rounded down to
-the nearest known amount. Using less than 8 bytes will cause an error.)
+the nearest known amount.
+Using less than 8 bytes will cause an error.)
The seed for the initialization (which specifies a starting point for
the random number sequence, and provides for restarting at the same
point) is also an argument.