[PATCH v7] getrandom system call wrapper [BZ #17252]

Florian Weimer fweimer@redhat.com
Mon Nov 21 17:34:00 GMT 2016


On 11/21/2016 06:30 PM, Torvald Riegel wrote:

> Does the kernel guarantee this, meaning that it's specifically
> documented as part of the interface?

Yes, if the flags argument is 0, the call will only block if the kernel 
randomness pool has not been seeded yet.  And this is the reason why 
people want getrandom: they want to stop reading potentially predictable 
bits from /dev/urandom.

This is documented in the manual page.

Florian



More information about the Libc-alpha mailing list