diff options
author | millert <> | 2014-11-25 17:26:34 +0000 |
---|---|---|
committer | millert <> | 2014-11-25 17:26:34 +0000 |
commit | 85b059f3a82749da7feb8941525b0fae36b4bd12 (patch) | |
tree | 73971df6a558a38ee2a7010cb1e29bc8735229c9 | |
parent | 5035cb260b2f6ca351c612c3e051a8db725a6bbd (diff) | |
download | openbsd-85b059f3a82749da7feb8941525b0fae36b4bd12.tar.gz openbsd-85b059f3a82749da7feb8941525b0fae36b4bd12.tar.bz2 openbsd-85b059f3a82749da7feb8941525b0fae36b4bd12.zip |
Warn people to use arc4random() in DESCRIPTION so they see it using
the same text from random.3.
-rw-r--r-- | src/lib/libc/stdlib/rand48.3 | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/libc/stdlib/rand48.3 b/src/lib/libc/stdlib/rand48.3 index 29e72b8c01..a4473185de 100644 --- a/src/lib/libc/stdlib/rand48.3 +++ b/src/lib/libc/stdlib/rand48.3 | |||
@@ -9,9 +9,9 @@ | |||
9 | .\" of any kind. I shall in no event be liable for anything that happens | 9 | .\" of any kind. I shall in no event be liable for anything that happens |
10 | .\" to anyone/anything when using this software. | 10 | .\" to anyone/anything when using this software. |
11 | .\" | 11 | .\" |
12 | .\" $OpenBSD: rand48.3,v 1.15 2014/09/08 01:27:54 schwarze Exp $ | 12 | .\" $OpenBSD: rand48.3,v 1.16 2014/11/25 17:26:34 millert Exp $ |
13 | .\" | 13 | .\" |
14 | .Dd $Mdocdate: September 8 2014 $ | 14 | .Dd $Mdocdate: November 25 2014 $ |
15 | .Dt RAND48 3 | 15 | .Dt RAND48 3 |
16 | .Os | 16 | .Os |
17 | .Sh NAME | 17 | .Sh NAME |
@@ -46,6 +46,12 @@ | |||
46 | .Ft void | 46 | .Ft void |
47 | .Fn lcong48 "unsigned short p[7]" | 47 | .Fn lcong48 "unsigned short p[7]" |
48 | .Sh DESCRIPTION | 48 | .Sh DESCRIPTION |
49 | .Bf -symbolic | ||
50 | This interface is not cryptographically secure, so consider using | ||
51 | .Xr arc4random 3 | ||
52 | instead. | ||
53 | .Ef | ||
54 | .Pp | ||
49 | The | 55 | The |
50 | .Fn rand48 | 56 | .Fn rand48 |
51 | family of functions generates pseudo-random numbers using a linear | 57 | 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. | |||
154 | Note that all three methods of seeding the random number generator | 160 | Note that all three methods of seeding the random number generator |
155 | always also set the multiplicand and addend for any of the six | 161 | always also set the multiplicand and addend for any of the six |
156 | generator calls. | 162 | generator calls. |
157 | .Pp | ||
158 | For a more powerful random number generator, see | ||
159 | .Xr arc4random 3 . | ||
160 | .Sh SEE ALSO | 163 | .Sh SEE ALSO |
161 | .Xr arc4random 3 , | 164 | .Xr arc4random 3 , |
162 | .Xr rand 3 , | 165 | .Xr rand 3 , |