diff options
| author | millert <> | 2014-11-25 17:26:34 +0000 |
|---|---|---|
| committer | millert <> | 2014-11-25 17:26:34 +0000 |
| commit | 3fce341792eff20ef1312c370a194ff4da3e67ca (patch) | |
| tree | 73971df6a558a38ee2a7010cb1e29bc8735229c9 /src/lib/libc/stdlib | |
| parent | f615025c18d09bf4398c142fb1ab60e82f146a78 (diff) | |
| download | openbsd-3fce341792eff20ef1312c370a194ff4da3e67ca.tar.gz openbsd-3fce341792eff20ef1312c370a194ff4da3e67ca.tar.bz2 openbsd-3fce341792eff20ef1312c370a194ff4da3e67ca.zip | |
Warn people to use arc4random() in DESCRIPTION so they see it using
the same text from random.3.
Diffstat (limited to 'src/lib/libc/stdlib')
| -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 , |
