summaryrefslogtreecommitdiffstats
path: root/man3/getentropy.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/getentropy.3')
-rw-r--r--man3/getentropy.316
1 files changed, 8 insertions, 8 deletions
diff --git a/man3/getentropy.3 b/man3/getentropy.3
index f09a209..7c70623 100644
--- a/man3/getentropy.3
+++ b/man3/getentropy.3
@@ -2,7 +2,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH getentropy 3 2023-03-30 "Linux man-pages 6.05.01"
+.TH getentropy 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
getentropy \- fill a buffer with random bytes
.SH LIBRARY
@@ -11,15 +11,15 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.PP
+.P
.BI "int getentropy(void " buffer [. length "], size_t " length );
.fi
-.PP
+.P
.RS -4
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.RE
-.PP
+.P
.BR getentropy ():
.nf
_DEFAULT_SOURCE
@@ -35,7 +35,7 @@ at the location pointed to by
The maximum permitted value for the
.I length
argument is 256.
-.PP
+.P
A successful call to
.BR getentropy ()
always provides the requested number of bytes of entropy.
@@ -76,19 +76,19 @@ The
.BR getentropy ()
function is implemented using
.BR getrandom (2).
-.PP
+.P
Whereas the glibc wrapper makes
.BR getrandom (2)
a cancelation point,
.BR getentropy ()
is not a cancelation point.
-.PP
+.P
.BR getentropy ()
is also declared in
.BR <sys/random.h> .
(No feature test macro need be defined to obtain the declaration from
that header file.)
-.PP
+.P
A call to
.BR getentropy ()
may block if the system has just booted and the kernel has