summaryrefslogtreecommitdiffstats
path: root/man3/arc4random.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/arc4random.3')
-rw-r--r--man3/arc4random.315
1 files changed, 7 insertions, 8 deletions
diff --git a/man3/arc4random.3 b/man3/arc4random.3
index b7e1f4d..b205ca9 100644
--- a/man3/arc4random.3
+++ b/man3/arc4random.3
@@ -3,7 +3,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH arc4random 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH arc4random 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
arc4random, arc4random_uniform, arc4random_buf
\- cryptographically-secure pseudorandom number generator
@@ -13,29 +13,29 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.PP
+.P
.B uint32_t arc4random(void);
.BI "uint32_t arc4random_uniform(uint32_t " upper_bound );
.BI "void arc4random_buf(void " buf [. n "], size_t " n );
.fi
.SH DESCRIPTION
These functions give cryptographically-secure pseudorandom numbers.
-.PP
+.P
.BR arc4random ()
returns a uniformly-distributed value.
-.PP
+.P
.BR arc4random_uniform ()
returns a uniformly-distributed value less than
.I upper_bound
(see BUGS).
-.PP
+.P
.BR arc4random_buf ()
fills the memory pointed to by
.IR buf ,
with
.I n
bytes of pseudorandom data.
-.PP
+.P
The
.BR rand (3)
and
@@ -51,7 +51,7 @@ functions.
.SH RETURN VALUE
.BR arc4random ()
returns a pseudorandom number.
-.PP
+.P
.BR arc4random_uniform ()
returns a pseudorandom number less than
.I upper_bound
@@ -76,7 +76,6 @@ T{
.BR arc4random_buf ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH STANDARDS
BSD.
.SH HISTORY