Closed christf closed 6 years ago
@t-8ch what do you think?
Looks good! I would prefer to have the wrapper code in a different source file though. The while() loop could also be put in its own function.
The getrandom
function should also use a different name, as it may conflict with a libc-provided implementation like this.
We should also detect if the kernel does not implement the getrandom
syscall at all and error out in this case.
(Most probably: syscall(SYS_getrandom, ...)
returns -1
and sets errno
to ENOSYS
)
Die Hinweise sind umgesetzt. Was meint ihr?
that will address #24