diff options
author | 2014-11-25 17:26:34 +0000 | |
---|---|---|
committer | 2014-11-25 17:26:34 +0000 | |
commit | fc27bf7c6ca5c4c2e7034e8ca64e8e6202dcca3d (patch) | |
tree | 791caa48143b407d68ffde15fa0012aa28071a45 /lib/libc | |
parent | r1.118 starting using LINK_STATE_IS_UP() to check the link status (diff) | |
download | wireguard-openbsd-fc27bf7c6ca5c4c2e7034e8ca64e8e6202dcca3d.tar.xz wireguard-openbsd-fc27bf7c6ca5c4c2e7034e8ca64e8e6202dcca3d.zip |
Warn people to use arc4random() in DESCRIPTION so they see it using
the same text from random.3.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdlib/rand48.3 | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/libc/stdlib/rand48.3 b/lib/libc/stdlib/rand48.3 index 29e72b8c013..a4473185de1 100644 --- a/lib/libc/stdlib/rand48.3 +++ b/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 , |