]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
getrandom.2: Rework GRND_RANDOM text
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 29 Jan 2015 12:20:54 +0000 (13:20 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 29 Jan 2015 22:12:23 +0000 (23:12 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/getrandom.2

index 2d7c4b3c74cc839fd60caab7723320ca52eb3cca..1c36f5ac442ca2efc188b741b4a6672d24de5153 100644 (file)
@@ -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 .