[issue22542] Use arc4random under OpenBSD for os.urandom() if /dev/urandom is not present

STINNER Victor report at bugs.python.org
Thu Oct 9 11:49:54 CEST 2014


STINNER Victor added the comment:

> Hopefully this could then be used as a template for getrandom() when implemented on Linux.

Sorry, what is getrandom()?

Linux 3.17 has a new getrandom() syscall, but the C API is not defined yet (see the issue #22181). OpenBSD 5.6 will have a getentropy() syscall and a gentropy() function in the C libray.

If if you are discussing about an hypothetical function in the C library, it's out of the scope if this bug tracker. Python don't call directly syscalls (ok, there is only one place in _posixsubprocess to avoid a race condition).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22542>
_______________________________________


More information about the Python-bugs-list mailing list