summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/random.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/stdlib/random.3')
-rw-r--r--src/lib/libc/stdlib/random.38
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/random.3 b/src/lib/libc/stdlib/random.3
index 3d4545651b..b98917a442 100644
--- a/src/lib/libc/stdlib/random.3
+++ b/src/lib/libc/stdlib/random.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: random.3,v 1.14 2001/09/06 15:04:34 mpech Exp $ 32.\" $OpenBSD: random.3,v 1.15 2003/05/10 06:48:30 jmc Exp $
33.\" 33.\"
34.Dd April 19, 1991 34.Dd April 19, 1991
35.Dt RANDOM 3 35.Dt RANDOM 3
@@ -60,7 +60,7 @@ function uses a non-linear additive feedback random number generator employing
60a default table of size 31 long integers to return successive pseudo-random 60a default table of size 31 long integers to return successive pseudo-random
61numbers in the range from 0 to (2**31)\-1. 61numbers in the range from 0 to (2**31)\-1.
62The period of this random number generator is very large, approximately 62The period of this random number generator is very large, approximately
6316*((2**31)\-1. 6316*((2**31)\-1).
64.Pp 64.Pp
65The 65The
66.Fn random 66.Fn random
@@ -68,7 +68,7 @@ and
68.Fn srandom 68.Fn srandom
69functions have (almost) the same calling sequence and initialization 69functions have (almost) the same calling sequence and initialization
70properties as 70properties as
71.Xr rand 3 Ns / Xr srand 3 . 71.Xr rand 3 Ns / Ns Xr srand 3 .
72The difference is that 72The difference is that
73.Xr rand 73.Xr rand
74produces a much less random sequence \(em in fact, the low dozen bits 74produces a much less random sequence \(em in fact, the low dozen bits
@@ -93,7 +93,7 @@ as the seed.
93.Pp 93.Pp
94The 94The
95.Fn srandomdev 95.Fn srandomdev
96routine initialize a state array using the 96routine initializes a state array using the
97.Xr arandom 4 97.Xr arandom 4
98random number device which returns good random numbers, 98random number device which returns good random numbers,
99suitable for cryptographic use. 99suitable for cryptographic use.