[issue21305] PEP 466: update os.urandom

STINNER Victor report at bugs.python.org
Mon Apr 28 23:51:59 CEST 2014


STINNER Victor added the comment:

Please don't backport this "feature". We had to wait 20 years before someone requested the feature, but only a few months before the first user reported an issue ("regression"?).

IMO it would be much better to use explicitly a random.SystemRandom instance which would keep the fd open, and only use it if you hit the bug (*many* threads calling os.urandom in parallel.

----------
nosy: +haypo

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


More information about the Python-bugs-list mailing list