This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]