From 83453faed1f861003562efb2cfad820620a98cd7 Mon Sep 17 00:00:00 2001 From: millert <> Date: Tue, 25 Nov 2014 17:26:34 +0000 Subject: [PATCH] Warn people to use arc4random() in DESCRIPTION so they see it using the same text from random.3. --- src/lib/libc/stdlib/rand48.3 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/lib/libc/stdlib/rand48.3 b/src/lib/libc/stdlib/rand48.3 index 29e72b8c..a4473185 100644 --- a/src/lib/libc/stdlib/rand48.3 +++ b/src/lib/libc/stdlib/rand48.3 @@ -9,9 +9,9 @@ .\" of any kind. I shall in no event be liable for anything that happens .\" to anyone/anything when using this software. .\" -.\" $OpenBSD: rand48.3,v 1.15 2014/09/08 01:27:54 schwarze Exp $ +.\" $OpenBSD: rand48.3,v 1.16 2014/11/25 17:26:34 millert Exp $ .\" -.Dd $Mdocdate: September 8 2014 $ +.Dd $Mdocdate: November 25 2014 $ .Dt RAND48 3 .Os .Sh NAME @@ -46,6 +46,12 @@ .Ft void .Fn lcong48 "unsigned short p[7]" .Sh DESCRIPTION +.Bf -symbolic +This interface is not cryptographically secure, so consider using +.Xr arc4random 3 +instead. +.Ef +.Pp The .Fn rand48 family of functions generates pseudo-random numbers using a linear @@ -154,9 +160,6 @@ It is thus not possible to use values greater than 0xffff as the addend. Note that all three methods of seeding the random number generator always also set the multiplicand and addend for any of the six generator calls. -.Pp -For a more powerful random number generator, see -.Xr arc4random 3 . .Sh SEE ALSO .Xr arc4random 3 , .Xr rand 3 ,