From: Michael Kerrisk Date: Thu, 29 Jan 2015 12:20:54 +0000 (+0100) Subject: getrandom.2: Rework GRND_RANDOM text X-Git-Tag: man-pages-3.79~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0646abd614a050daeab88bc8494dd76e55558bd5;p=thirdparty%2Fman-pages.git getrandom.2: Rework GRND_RANDOM text Signed-off-by: Michael Kerrisk --- diff --git a/man2/getrandom.2 b/man2/getrandom.2 index 2d7c4b3c74..1c36f5ac44 100644 --- a/man2/getrandom.2 +++ b/man2/getrandom.2 @@ -104,17 +104,18 @@ in the argument. .TP .B GRND_NONBLOCK -By default, if there are no random bytes available at all (when reading from -.IR /dev/random ), -or the entropy pool has not yet been initialized (when reading from -.IR /dev/urandom ), +By default, when reading from +.IR /dev/random , .BR getrandom () -blocks until data is available. +blocks if no random bytes are available, +and when reading from +.IR /dev/urandom , +it blocks if the entropy pool has not yet been initialized. If the .B GRND_NONBLOCK flag is set, then .BR getrandom () -instead immediately returns \-1 with +does not block in these cases, but instead immediately returns \-1 with .I errno set to .BR EAGAIN .