Browse Source

Warn people to use arc4random() in DESCRIPTION so they see it using

the same text from random.3.
OPENBSD_5_7
millert 10 years ago
parent
commit
83453faed1
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      src/lib/libc/stdlib/rand48.3

+ 8
- 5
src/lib/libc/stdlib/rand48.3 View File

@ -9,9 +9,9 @@
.\" of any kind. I shall in no event be liable for anything that happens .\" of any kind. I shall in no event be liable for anything that happens
.\" to anyone/anything when using this software. .\" 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 .Dt RAND48 3
.Os .Os
.Sh NAME .Sh NAME
@ -46,6 +46,12 @@
.Ft void .Ft void
.Fn lcong48 "unsigned short p[7]" .Fn lcong48 "unsigned short p[7]"
.Sh DESCRIPTION .Sh DESCRIPTION
.Bf -symbolic
This interface is not cryptographically secure, so consider using
.Xr arc4random 3
instead.
.Ef
.Pp
The The
.Fn rand48 .Fn rand48
family of functions generates pseudo-random numbers using a linear 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 Note that all three methods of seeding the random number generator
always also set the multiplicand and addend for any of the six always also set the multiplicand and addend for any of the six
generator calls. generator calls.
.Pp
For a more powerful random number generator, see
.Xr arc4random 3 .
.Sh SEE ALSO .Sh SEE ALSO
.Xr arc4random 3 , .Xr arc4random 3 ,
.Xr rand 3 , .Xr rand 3 ,


|||||||
|||||||
xxxxxxxxxx
 
000:0
x
 
000:0
Loading…
Cancel
Save