summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormillert <>2014-11-25 17:26:34 +0000
committermillert <>2014-11-25 17:26:34 +0000
commit85b059f3a82749da7feb8941525b0fae36b4bd12 (patch)
tree73971df6a558a38ee2a7010cb1e29bc8735229c9
parent5035cb260b2f6ca351c612c3e051a8db725a6bbd (diff)
downloadopenbsd-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.313
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
50This interface is not cryptographically secure, so consider using
51.Xr arc4random 3
52instead.
53.Ef
54.Pp
49The 55The
50.Fn rand48 56.Fn rand48
51family of functions generates pseudo-random numbers using a linear 57family 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.
154Note that all three methods of seeding the random number generator 160Note that all three methods of seeding the random number generator
155always also set the multiplicand and addend for any of the six 161always also set the multiplicand and addend for any of the six
156generator calls. 162generator calls.
157.Pp
158For 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 ,