svn commit: r279269 - head/lib/libc/stdlib
Colin Percival
cperciva at FreeBSD.org
Wed Feb 25 07:49:16 UTC 2015
Author: cperciva
Date: Wed Feb 25 07:49:15 2015
New Revision: 279269
URL: https://svnweb.freebsd.org/changeset/base/279269
Log:
Adjust wording slightly to emphasize that random(3) should not be used for
any applications which need unpredictable random numbers, not merely those
which are cryptographic in nature.
If you work for a lottery and you're using random(3) to select the winning
numbers, please let me know.
Modified:
head/lib/libc/stdlib/random.3
Modified: head/lib/libc/stdlib/random.3
==============================================================================
--- head/lib/libc/stdlib/random.3 Wed Feb 25 06:20:42 2015 (r279268)
+++ head/lib/libc/stdlib/random.3 Wed Feb 25 07:49:15 2015 (r279269)
@@ -54,9 +54,8 @@
.Fn setstate "char *state"
.Sh DESCRIPTION
.Bf -symbolic
-The functions described in this manual page are not cryptographically
-secure.
-Cryptographic applications should use
+The functions described in this manual page are not secure.
+Applications which require unpredictable random numbers should use
.Xr arc4random 3
instead.
.Ef
More information about the svn-src-head
mailing list