This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Steven.Barker, ideasman42, mark.dickinson, paul.moore, rhettinger, serhiy.storchaka, steve.dower, tim.golden, tim.peters, zach.ware
Date 2016-05-22.06:29:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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".
Date User Action Args
2016-05-22 06:29:18serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger, paul.moore, mark.dickinson, tim.golden, ideasman42, zach.ware, steve.dower, Steven.Barker
2016-05-22 06:29:18serhiy.storchakasetmessageid: <>
2016-05-22 06:29:18serhiy.storchakalinkissue27072 messages
2016-05-22 06:29:18serhiy.storchakacreate