[issue27072] random.getrandbits is limited to 2**31-1 bits on 64-bit Windows
Serhiy Storchaka
report at bugs.python.org
Sun May 22 02:29:18 EDT 2016
Serhiy Storchaka added the comment:
The only case I know that would benefit is generating random data for tests. On my computer generating 2*28 bits with getrandbits() takes 2 sec (including 1 sec for converting from bytes to int), plus 1.4 sec for converting from int to bytes. Special API would speed up generating random bytes by 3.4 times. I would request for this functionality, but I don't want to clutter the API.
As for getrandbits.diff, I think that we should follow the principle "we're all consenting adults here".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27072>
_______________________________________
More information about the Python-bugs-list
mailing list