mirror of https://github.com/mkerrisk/man-pages
getrandom.2: Reword GRND_NONBLOCK description
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
7028ce50ab
commit
d2a1b46b62
|
@ -96,17 +96,17 @@ in the
|
|||
argument.
|
||||
.TP
|
||||
.B GRND_NONBLOCK
|
||||
If this bit is set and there is no random byte available at all,
|
||||
By default, if there is no random byte available at all,
|
||||
.BR getrandom ()
|
||||
will return -1 with
|
||||
blocks until data is available.
|
||||
If the
|
||||
.B GRND_NONBLOCK
|
||||
flag is set, then
|
||||
.BR getrandom ()
|
||||
instead immediately returns -1 with
|
||||
.I errno
|
||||
set to
|
||||
.BR EAGAIN .
|
||||
If the
|
||||
.B GRND_NONBLOCK
|
||||
bit is not set and there is no random byte available at all,
|
||||
.BR getrandom ()
|
||||
will block.
|
||||
.SH RETURN VALUE
|
||||
On success,
|
||||
.BR getrandom ()
|
||||
|
|
Loading…
Reference in New Issue