summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/random.3
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-07-17 23:12:28 +0000
committerderaadt <deraadt@openbsd.org>2014-07-17 23:12:28 +0000
commit659ea642727a3b08e65eb38c1b2b3ca3eb4f0aca (patch)
treeb3ec76a3bb27b82262cd2e9f3603628e006046e7 /lib/libc/stdlib/random.3
parentfiles-to-dump can be a duid; (diff)
downloadwireguard-openbsd-659ea642727a3b08e65eb38c1b2b3ca3eb4f0aca.tar.xz
wireguard-openbsd-659ea642727a3b08e65eb38c1b2b3ca3eb4f0aca.zip
it is 2014, and we still need to encourage people away from srand()
and random(). Sigh.
Diffstat (limited to 'lib/libc/stdlib/random.3')
-rw-r--r--lib/libc/stdlib/random.310
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3
index 2bac41796ed..1223745cb47 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.23 2014/07/13 14:25:00 tedu Exp $
+.\" $OpenBSD: random.3,v 1.24 2014/07/17 23:12:28 deraadt Exp $
.\"
-.Dd $Mdocdate: July 13 2014 $
+.Dd $Mdocdate: July 17 2014 $
.Dt RANDOM 3
.Os
.Sh NAME
@@ -50,6 +50,12 @@
.Ft char *
.Fn setstate "char *state"
.Sh DESCRIPTION
+.Bf -symbolic
+This interface is not cryptographically secure, so consider using
+.Xr arc4random 3
+instead.
+.Ef
+.Pp
The
.Fn random
function uses a non-linear additive feedback random number generator employing