[issue18756] os.urandom() fails under high load

STINNER Victor report at bugs.python.org
Sat Aug 17 09:46:46 CEST 2013


STINNER Victor added the comment:

Tarek: try to use ssl.RAND_bytes(), it is secure, fast and don't use a file
descriptor.

IMO if something can be improved, it is in the random.SystemRandom() class:
it can keep the FD open. Does the class have a method to generate random
bytes?

----------

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


More information about the Python-bugs-list mailing list