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 vstinner
Recipients vstinner
Date 2014-04-30.10:07:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398852467.62.0.62846026727.issue21394@psf.upfronthosting.co.za>
In-reply-to
Content
In Lib/random.py, I see lines like that:

   long(_hexlify(_urandom(32)), 16)

I guess that something more efficient can be fonud to convert a bytes string to an integer.

bytes.from_bytes() maybe?
History
Date User Action Args
2014-04-30 10:07:47vstinnersetrecipients: + vstinner
2014-04-30 10:07:47vstinnersetmessageid: <1398852467.62.0.62846026727.issue21394@psf.upfronthosting.co.za>
2014-04-30 10:07:47vstinnerlinkissue21394 messages
2014-04-30 10:07:47vstinnercreate