aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/rand.3
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2010-10-06 09:05:47 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2010-10-06 09:05:47 +0000
commit866dcc94625d9f09f3df85a630b6b5a8d2d50852 (patch)
tree16495a97a83866097c9c77a68928b7f1052f33ad /lib/libc/stdlib/rand.3
parent49f4ceab51371c9824d4fb49197e7ca13dabb97e (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib/rand.3')
-rw-r--r--lib/libc/stdlib/rand.311
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/stdlib/rand.3 b/lib/libc/stdlib/rand.3
index 9b247959f5333..beb144325a92b 100644
--- a/lib/libc/stdlib/rand.3
+++ b/lib/libc/stdlib/rand.3
@@ -32,7 +32,7 @@
.\" @(#)rand.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd May 25, 1999
+.Dd October 6, 2010
.Dt RAND 3
.Os
.Sh NAME
@@ -100,7 +100,16 @@ provides the same functionality as
A pointer to the context value
.Fa ctx
must be supplied by the caller.
+.Pp
+For better generator quality, use
+.Xr random 3
+or
+.Xr lrand48 3 .
+Applications requiring cryptographic quality randomness should use
+.Xr arc4random 3 .
.Sh SEE ALSO
+.Xr arc4random 3,
+.Xr lrand48 3 ,
.Xr random 3 ,
.Xr random 4
.Sh STANDARDS