summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-11-10 17:25:49 +0000
committerimp <imp@FreeBSD.org>2004-11-10 17:25:49 +0000
commiteae3ce693c64c05d1cd61735c6278754ce834aef (patch)
tree8d513dd345c3532684fd03b5e418d0d5f59aa4b1 /lib
parentfeba3ea9817ac3195b2b65c2b6221b20a072b2e4 (diff)
downloadFreeBSD-src-eae3ce693c64c05d1cd61735c6278754ce834aef.zip
FreeBSD-src-eae3ce693c64c05d1cd61735c6278754ce834aef.tar.gz
sranddev() is not magic pixie dust. While it gives a good random
seed, the random number generator rand(3) still sucks and is unlikely sufficient for crypto use. Correct what appears to be a cut and paste error from the srandomdev() man page. Submitted by: Ben Mesander
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/rand.36
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/stdlib/rand.3 b/lib/libc/stdlib/rand.3
index c0500ba..ee24dba 100644
--- a/lib/libc/stdlib/rand.3
+++ b/lib/libc/stdlib/rand.3
@@ -91,8 +91,10 @@ The
.Fn sranddev
function initializes a seed using the
.Xr random 4
-random number device which returns good random numbers,
-suitable for cryptographic use.
+random number device which returns good random numbers.
+However, the
+.Fn rand
+function still remains unsuitable for cryptographic use.
.Pp
The
.Fn rand_r
OpenPOWER on IntegriCloud