This is the mail archive of the glibc-bugs@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]

[Bug libc/17252] getrandom and getentropy syscall


https://sourceware.org/bugzilla/show_bug.cgi?id=17252

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Cristian RodrÃguez from comment #0)
> Ideally, if the system call is not found in the running kernel, fallback to
> emulation by reading /dev/urandom in the default case or /dev/random if 
> GRND_RANDOM is used.

If GRND_NONBLOCK is not set and the buffer is proper, the system call cannot
fail.  It is impossible to achieve that with emulation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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