aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-01-02 12:08:31 +0100
committerAlejandro Colomar <alx@kernel.org>2023-01-02 12:08:31 +0100
commit477c35bc1b0a785bd0b1eb5d57943b0483390519 (patch)
tree6402dd9b4665ea1634c7eaff579b2877fe28e366
parent35673e24858eb47f82f7d5dcb3c3a492e25e99e8 (diff)
downloadman-pages-477c35bc1b0a785bd0b1eb5d57943b0483390519.tar.gz
arc4random.3: Be consistent in uses of pseudorandom
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/arc4random.310
1 files changed, 5 insertions, 5 deletions
diff --git a/man3/arc4random.3 b/man3/arc4random.3
index 2afcec2c4e..6128ba7a4d 100644
--- a/man3/arc4random.3
+++ b/man3/arc4random.3
@@ -18,7 +18,7 @@ Standard C library
.BI "void arc4random_buf(void " buf [. n "], size_t " n );
.fi
.SH DESCRIPTION
-These functions give cryptographically-secure random numbers.
+These functions give cryptographically-secure pseudorandom numbers.
.PP
.BR arc4random ()
returns a uniformly-distributed value.
@@ -33,14 +33,14 @@ fills the memory pointed to by
.IR buf ,
with
.I n
-bytes of random data.
+bytes of pseudorandom data.
.PP
The
.BR rand (3)
and
.BR drand48 (3)
families of functions should only be used where
-the quality of the random numbers is not a concern
+the quality of the pseudorandom numbers is not a concern
.I and
there's a need for repeatability of the results.
Unless you meet both of those conditions,
@@ -49,10 +49,10 @@ use the
functions.
.SH RETURN VALUE
.BR arc4random ()
-returns a random number.
+returns a pseudorandom number.
.PP
.BR arc4random_uniform ()
-returns a random number less than
+returns a pseudorandom number less than
.I upper_bound
for valid input, or
.B 0