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

STINNER Victor report at bugs.python.org
Tue Sep 20 17:50:49 EDT 2016


STINNER Victor added the comment:

"Trying to run the python interpreter in a chroot fails if /dev/urandom is not present."

The workaround is simple: fix your chroot to correctly expose /dev/urandom in the chroot. It's a common and known issue, no?

Since the issue is almost dead since 2 years and I don't know if arc4random() is suitable for os.urandom(), I close the issue. If you want to reopen it, please come back with more information on arc4random() security ;-)

----------
resolution:  -> out of date
status: open -> closed

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


More information about the Python-bugs-list mailing list