[issue13396] new method random.getrandbytes()

Raymond Hettinger report at bugs.python.org
Mon Nov 14 03:57:30 CET 2011


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

The differential cost of generating n random bytes is negligible compared to actually doing anything with the bytes once their generated.  

This optimization is close to being a total waste (saving 15 milliseconds for the abnormal case of generating 1 million random bytes).

----------

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


More information about the Python-bugs-list mailing list