On 03/01/2018 03:51, David C. Rankin wrote:
On 01/01/2018 02:13 AM, Dave Plater wrote:
Why is the prototype missing?
Maybe this link explains something: https://stackoverflow.com/questions/45237324/why-doesnt-getrandom-compile Dave P
Yes, that indeed does provide a hint that something is in fact missing from linux/random.h and howto workaround the problem, but is this a BUG?
Why on earth would we have a man page for getrandom(), but then the implementation is actually missing from the stated header?
The quote:
"It appears that some Linux systems have a man page for getrandom and the correct syscall definitions, but no C function."
doesn't quite answer that question. To me, is looks like a bug, walks like a bug and quacks like a bug.... that leaves you either (1) implementing the workaround function, (2) drawing from /dev/urandom, or (3) polling /dev/random -- all of which the getrandom() function was implemented to avoid having to do :(
It is indeed a bug but the question is, is it a kernel bug or is it a glibc bug or is it only a man pages bug? Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org