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.314
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libc/stdlib/random.3 b/src/lib/libc/stdlib/random.3
index 47cdfea9b3..e1ab9e44da 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.7 1999/05/23 14:11:03 aaron Exp $ 32.\" $OpenBSD: random.3,v 1.8 1999/06/29 18:36:23 aaron Exp $
33.\" 33.\"
34.Dd April 19, 1991 34.Dd April 19, 1991
35.Dt RANDOM 3 35.Dt RANDOM 3
@@ -42,7 +42,7 @@
42.Nd better random number generator; routines for changing generators 42.Nd better random number generator; routines for changing generators
43.Sh SYNOPSIS 43.Sh SYNOPSIS
44.Fd #include <stdlib.h> 44.Fd #include <stdlib.h>
45.Ft long 45.Ft long
46.Fn random void 46.Fn random void
47.Ft void 47.Ft void
48.Fn srandom "unsigned int seed" 48.Fn srandom "unsigned int seed"
@@ -96,7 +96,7 @@ however,
96will by default produce a sequence of numbers that can be duplicated 96will by default produce a sequence of numbers that can be duplicated
97by calling 97by calling
98.Fn srandom 98.Fn srandom
99with 99with
100.Ql 1 100.Ql 1
101as the seed. 101as the seed.
102.Pp 102.Pp
@@ -167,16 +167,16 @@ messages are printed on the standard error output.
167.Xr rand 3 167.Xr rand 3
168.Sh STANDARDS 168.Sh STANDARDS
169The 169The
170.Fn random , 170.Fn random ,
171.Fn srandom , 171.Fn srandom ,
172.Fn initstate , 172.Fn initstate ,
173and 173and
174.Fn setstate 174.Fn setstate
175functions conform to 175functions conform to
176.St -xpg4.2 . 176.St -xpg4.2 .
177.Sh HISTORY 177.Sh HISTORY
178These 178These
179functions appeared in 179functions appeared in
180.Bx 4.2 . 180.Bx 4.2 .
181.Sh BUGS 181.Sh BUGS
182About 2/3 the speed of 182About 2/3 the speed of