[issue29061] secrets.randbelow(-1) hangs

Raymond Hettinger report at bugs.python.org
Fri Dec 30 00:42:21 EST 2016


Raymond Hettinger added the comment:

_randbelow is a private api and it is not broken, it is just being misused by the secrets module.   All of the other calls to it are already range checked and it would be inefficient and unnecessary to repeat this the check.

Brendan, thank you for the updated patch.  It looks correct.  I will apply shortly.

Please do follow-up with Ewa so we can get the asterisk to appear by your name :-)

----------

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


More information about the Python-bugs-list mailing list