[issue21394] Lib/random.py: use more efficient code to convert bytes to integer

Claudiu.Popa report at bugs.python.org
Wed Apr 30 12:34:36 CEST 2014


Claudiu.Popa added the comment:

Do you mean int.from_bytes?

It's already changed in Python 3.5: int.from_bytes(_urandom(32), 'big').

----------
nosy: +Claudiu.Popa

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


More information about the Python-bugs-list mailing list