summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/random.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libc/stdlib/random.318
1 files changed, 14 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/random.3 b/src/lib/libc/stdlib/random.3
index 87a4fe253f..b57dcd15e3 100644
--- a/src/lib/libc/stdlib/random.3
+++ b/src/lib/libc/stdlib/random.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: random.3,v 1.4 1998/02/06 01:49:08 deraadt Exp $ 32.\" $OpenBSD: random.3,v 1.5 1998/02/07 02:16:25 millert Exp $
33.\" 33.\"
34.Dd April 19, 1991 34.Dd April 19, 1991
35.Dt RANDOM 3 35.Dt RANDOM 3
@@ -45,11 +45,11 @@
45.Ft long 45.Ft long
46.Fn random void 46.Fn random void
47.Ft void 47.Ft void
48.Fn srandom "unsigned seed" 48.Fn srandom "unsigned int seed"
49.Ft char * 49.Ft char *
50.Fn initstate "unsigned seed" "char *state" "size_t n" 50.Fn initstate "unsigned int seed" "char *state" "size_t n"
51.Ft char * 51.Ft char *
52.Fn setstate "char *state" 52.Fn setstate "const char *state"
53.Sh DESCRIPTION 53.Sh DESCRIPTION
54The 54The
55.Fn random 55.Fn random
@@ -162,7 +162,17 @@ is called with less than 8 bytes of state information, or if
162detects that the state information has been garbled, error 162detects that the state information has been garbled, error
163messages are printed on the standard error output. 163messages are printed on the standard error output.
164.Sh SEE ALSO 164.Sh SEE ALSO
165.Xr drand48 3 ,
165.Xr rand 3 166.Xr rand 3
167.Sh STANDARDS
168The
169.Fn random ,
170.Fn srandom ,
171.Fn initstate ,
172and
173.Fn setstate
174functions conform to
175.St -xpg4.2 .
166.Sh HISTORY 176.Sh HISTORY
167These 177These
168functions appeared in 178functions appeared in