diff options
author | delphij <delphij@FreeBSD.org> | 2013-04-02 23:41:20 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-04-02 23:41:20 +0000 |
commit | 08ef412169e7d1b670ae8d57bfd6adfdace32ca4 (patch) | |
tree | ef793ecd9ffc2cadc85db8ff811a6c2015c943cd /lib/libc/stdlib/rand.3 | |
parent | 7236eb0dda54324c7d5909c8f01ef2aaaefb3e30 (diff) | |
download | FreeBSD-src-08ef412169e7d1b670ae8d57bfd6adfdace32ca4.zip FreeBSD-src-08ef412169e7d1b670ae8d57bfd6adfdace32ca4.tar.gz |
Replace access to /dev/random with the kernel pseudo-random number
source sysctl(KERN_ARND) and remove the fallback code.
Obtained from: OpenBSD
Reviewed by: secteam
MFC after: 1 month
Diffstat (limited to 'lib/libc/stdlib/rand.3')
-rw-r--r-- | lib/libc/stdlib/rand.3 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/stdlib/rand.3 b/lib/libc/stdlib/rand.3 index 390a40b..bf50e3d 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 September 4, 2012 +.Dd April 2, 2013 .Dt RAND 3 .Os .Sh NAME @@ -91,9 +91,7 @@ seeded with a value of 1. .Pp The .Fn sranddev -function initializes a seed using the -.Xr random 4 -random number device which returns good random numbers. +function initializes a seed using pseudo-random numbers obtained from the kernel. .Pp The .Fn rand_r |