summaryrefslogtreecommitdiffstats
path: root/man3/random.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/random.3')
-rw-r--r--man3/random.328
1 files changed, 14 insertions, 14 deletions
diff --git a/man3/random.3 b/man3/random.3
index 2958b5be1..9c69344e8 100644
--- a/man3/random.3
+++ b/man3/random.3
@@ -11,7 +11,7 @@
.\" Modified Sat Jul 24 18:13:39 1993 by Rik Faith (faith@cs.unc.edu)
.\" Modified Sun Aug 20 21:47:07 2000, aeb
.\"
-.TH random 3 2023-02-10 "Linux man-pages 6.03"
+.TH random 3 2023-07-20 "Linux man-pages 6.05.01"
.SH NAME
random, srandom, initstate, setstate \- random number generator
.SH LIBRARY
@@ -138,34 +138,26 @@ A state array of less than 8 bytes was specified to
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
.BR attributes (7).
-.ad l
-.nh
.TS
allbox;
lbx lb lb
l l l.
Interface Attribute Value
T{
+.na
+.nh
.BR random (),
.BR srandom (),
.BR initstate (),
.BR setstate ()
T} Thread safety MT-Safe
.TE
-.hy
-.ad
.sp 1
.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
.SH NOTES
-The
-.BR random ()
-function should not be used in multithreaded programs
-where reproducible behavior is required.
-Use
-.BR random_r (3)
-for that purpose.
-.PP
Random-number generation is a complex topic.
.I Numerical Recipes in C: The Art of Scientific Computing
(William H.\& Press, Brian P.\& Flannery, Saul A.\& Teukolsky,
@@ -178,6 +170,14 @@ in depth, see Chapter 3 (Random Numbers) in Donald E.\& Knuth's
.IR "The Art of Computer Programming" ,
volume 2 (Seminumerical Algorithms), 2nd ed.; Reading, Massachusetts:
Addison-Wesley Publishing Company, 1981.
+.SH CAVEATS
+The
+.BR random ()
+function should not be used in multithreaded programs
+where reproducible behavior is required.
+Use
+.BR random_r (3)
+for that purpose.
.SH BUGS
According to POSIX,
.BR initstate ()