summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/random.3
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2014-11-25 17:40:38 +0000
committermillert <millert@openbsd.org>2014-11-25 17:40:38 +0000
commit224c67f89b14f144df66cf369a89ee29b28b212d (patch)
tree53e89873c851dfa31fa5123e2e98700be01326cc /lib/libc/stdlib/random.3
parentWarn people to use arc4random() in DESCRIPTION so they see it using (diff)
downloadwireguard-openbsd-224c67f89b14f144df66cf369a89ee29b28b212d.tar.xz
wireguard-openbsd-224c67f89b14f144df66cf369a89ee29b28b212d.zip
Don't describe random() as "better".
Remove the bug about rand() being faster. Add a bug about historical implementations seeding very poorly.
Diffstat (limited to 'lib/libc/stdlib/random.3')
-rw-r--r--lib/libc/stdlib/random.310
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3
index 4650d34c833..b3bc560ad3c 100644
--- a/lib/libc/stdlib/random.3
+++ b/lib/libc/stdlib/random.3
@@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: random.3,v 1.25 2014/07/18 06:20:36 jmc Exp $
+.\" $OpenBSD: random.3,v 1.26 2014/11/25 17:40:38 millert Exp $
.\"
-.Dd $Mdocdate: July 18 2014 $
+.Dd $Mdocdate: November 25 2014 $
.Dt RANDOM 3
.Os
.Sh NAME
@@ -36,7 +36,7 @@
.Nm srandomdev ,
.Nm initstate ,
.Nm setstate
-.Nd better random number generator; routines for changing generators
+.Nd pseudo-random number generator; routines for changing generators
.Sh SYNOPSIS
.In stdlib.h
.Ft long
@@ -186,5 +186,5 @@ functions appeared in
.Sh AUTHORS
.An Earl T. Cohen
.Sh BUGS
-About 2/3 the speed of
-.Xr rand 3 .
+The historical implementation used to have very weak seeding.
+As a result, the random sequence did not vary much with the seed.