STINNER Victor added the comment:

Commit in the Linux kernel:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895

--

Here is a patch to use the new getrandom() syscall of Linux 3.17 in the Python 
function os.urandom().

The function falls back to reading /dev/urandom if getrandom() is not supported 
(returns ENOSYS at runtime).

On my Linux 3.18, the EINTR path is never taken. But I was able to test it 
manually by setting flags to GRND_RANDOM (2) and injecting many signals using 
signal.setitimer(): see my http://bugs.python.org/issue23285#msg237100

----------
keywords: +patch
Added file: http://bugs.python.org/file38310/random.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22181>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to