]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
getrandom.2: Clarify sentence on getrandom() and partial GRND_RANDOM reads
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 22 Jan 2015 20:36:04 +0000 (21:36 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 29 Jan 2015 08:02:41 +0000 (09:02 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/getrandom.2

index f302508dbae6bda3afcef1a2117beb1c86c39ad7..c5fdf15cb3a50033797277873f6860ae22e4fffa 100644 (file)
@@ -224,7 +224,7 @@ is not specified and
 .I buflen
 is less than or equal to 256,
 a return of fewer bytes than requested should never happen,
-but the careful user-space code should check for this anyway!
+but the careful programmer will check for this anyway!
 .SS Choice of random device
 Unless you are doing long-term key generation (and perhaps not even
 then), you probably shouldn't be using
@@ -235,9 +235,11 @@ are quite conservative, and so should be sufficient for all purposes.
 The disadvantage of
 .B GRND_RANDOM
 is that it can block.
-Furthermore, dealing with partially fulfilled
+Furthermore, dealing with the partially fulfilled
 .BR getrandom ()
-requests increases code complexity.
+requests that can occur when using
+.B GRND_RANDOM
+increases code complexity.
 .SS Emulating OpenBSD's getentropy()
 The
 .BR getentropy ()