[PATCH v7] getrandom system call wrapper [BZ #17252]
Paul Eggert
eggert@cs.ucla.edu
Tue Nov 29 17:53:00 GMT 2016
On 11/29/2016 07:54 AM, Zack Weinberg wrote:
> Would it make sense for getentropy
> to loop internally rather than returning a short read?
FWIW, that is what I was planning when implementing a more-portable
version of getentropy (I guess that's its name now?) for Gnulib, after
the API settles down. Gnulib-using applications typically need a small
number of random bytes. I don't want to worry about modifying these apps
to take into account the possibility of waiting indefinitely due to a
bug in the hardware or operating system. If such a wait occurs, it's OK
with me to just say "fix your platform".
More information about the Libc-alpha
mailing list