[issue27990] Provide a way to enable getrandom on Linux even when build system runs an older kernel
STINNER Victor
report at bugs.python.org
Tue Sep 6 23:07:50 EDT 2016
STINNER Victor added the comment:
Support for the getrandom() syscall requires syscall(), SYS_getrandom constant, GRND_NONBLOCK and GRND_RANDOM constants, linux/random.h header, etc.
I don't understand your request. configure doesn't check getrandom() syscall result:
/* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
(void)syscall(SYS_getrandom, buffer, buflen, flags);
I don't see how you can support getrandom() if the host doesn't have all constants to compile the C code. Do you have to hardcode constants?
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27990>
_______________________________________
More information about the Python-bugs-list
mailing list