From eb51316b50c8cdc4b0397a569e18619778bea5c5 Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Wed, 25 Feb 2015 07:49:15 +0000 Subject: [PATCH] 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. --- lib/libc/stdlib/random.3 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3 index dc8e961d8ce..254be0a3a07 100644 --- a/lib/libc/stdlib/random.3 +++ b/lib/libc/stdlib/random.3 @@ -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