~ubuntu-branches/ubuntu/saucy/manpages/saucy

« back to all changes in this revision

Viewing changes to man3/random.3

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-11-17 16:35:58 UTC
  • mfrom: (1.1.45 upstream) (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101117163558-9h3ho5jumqm3rdmd
Tags: 3.27-1ubuntu1
* Merge from Debian unstable; remaining changes:
  - ptrace.2, prctl.2: document Ubuntu-specific PTRACE_ATTACH,
    PR_SET_PTRACER behavior.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
.\" Modified Sat Jul 24 18:13:39 1993 by Rik Faith (faith@cs.unc.edu)
29
29
.\" Modified Sun Aug 20 21:47:07 2000, aeb
30
30
.\"
31
 
.TH RANDOM 3  2009-02-03 "GNU" "Linux Programmer's Manual"
 
31
.TH RANDOM 3  2010-09-20 "GNU" "Linux Programmer's Manual"
32
32
.SH NAME
33
33
random, srandom, initstate, setstate \- random number generator
34
34
.SH SYNOPSIS
54
54
.BR srandom (),
55
55
.BR initstate (),
56
56
.BR setstate ():
57
 
_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
58
 
.ad b
 
57
.RS 4
 
58
_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
 
59
_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
 
60
.RE
 
61
.ad
59
62
.SH DESCRIPTION
60
63
The
61
64
.BR random ()
120
123
function returns no value.
121
124
The
122
125
.BR initstate ()
123
 
and
 
126
function returns a pointer to the previous state array.
 
127
The
124
128
.BR setstate ()
125
 
functions return a pointer to the previous state
126
 
array, or NULL on error.
 
129
function returns a pointer to the previous state array, or NULL on error.
127
130
.SH ERRORS
128
131
.TP
129
132
.B EINVAL
163
166
.BR random_r (3),
164
167
.BR srand (3)
165
168
.SH COLOPHON
166
 
This page is part of release 3.26 of the Linux
 
169
This page is part of release 3.27 of the Linux
167
170
.I man-pages
168
171
project.
169
172
A description of the project,