summaryrefslogtreecommitdiffstats
path: root/share/man/man9/random.9
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-11-29 11:39:20 +0000
committerru <ru@FreeBSD.org>2002-11-29 11:39:20 +0000
commit6d3a461a4f20776be1a83de2eada39cb152efd48 (patch)
treee178090675cafc86fcb97bb414bb098780299953 /share/man/man9/random.9
parentda32bc58a0c07d9ab5fab6a3dc0c10e746ac2dbd (diff)
downloadFreeBSD-src-6d3a461a4f20776be1a83de2eada39cb152efd48.zip
FreeBSD-src-6d3a461a4f20776be1a83de2eada39cb152efd48.tar.gz
mdoc(7) police: scheduled sweep.
Approved by: re
Diffstat (limited to 'share/man/man9/random.9')
-rw-r--r--share/man/man9/random.919
1 files changed, 10 insertions, 9 deletions
diff --git a/share/man/man9/random.9 b/share/man/man9/random.9
index 98d0ffa..e8f365f 100644
--- a/share/man/man9/random.9
+++ b/share/man/man9/random.9
@@ -30,6 +30,7 @@
.Os
.Dt RANDOM 9
.Sh NAME
+.Nm arc4rand ,
.Nm arc4random ,
.Nm random ,
.Nm read_random ,
@@ -58,11 +59,11 @@ by calling
with
.Ql 1
as the
-.Ar seed .
+.Fa seed .
The
.Fn srandom
function may be called with any arbitrary
-.Ar seed
+.Fa seed
value to get slightly more unpredictable numbers.
It is important to remember that the
.Fn random
@@ -79,7 +80,7 @@ are seeded from the entropy device if it is available.
Automatic reseeds happen after a certain timeinterval and after a
certain number of bytes have been delivered.
A forced reseed can be forced by passing a non-zero value in the
-.Ar reseed
+.Fa reseed
argument.
.Pp
The
@@ -87,17 +88,17 @@ The
function is used to return entropy directly from the entropy device
if it has been loaded. If the entropy device is not loaded, then
the
-.Ar buffer
+.Fa buffer
is filled with output generated by
.Fn random .
The
-.Ar buffer
+.Fa buffer
is filled with no more than
-.Ar count
+.Fa count
bytes. It is advised that
.Fn read_random
is not used; instead use
-.Fn arc4rand
+.Fn arc4rand
.Pp
All the bits generated by
.Fn random ,
@@ -133,7 +134,7 @@ bytes.
The
.Fn arc4random
function
-uses
+uses
.Fn arc4rand
to generate pseudo-random numbers in the range from 0 to
.if t 2\u\s732\s10\d\(mi1.
@@ -142,7 +143,7 @@ to generate pseudo-random numbers in the range from 0 to
The
.Fn read_random
function returns the number of bytes placed in
-.Ar buffer .
+.Fa buffer .
.Sh AUTHORS
.An Dan Moschuk
wrote
OpenPOWER on IntegriCloud