[issue29061] secrets.randbelow(-1) hangs

Brendan Donegan report at bugs.python.org
Tue Dec 27 11:41:49 EST 2016


Brendan Donegan added the comment:

If I'm not mistaken, _randbelow is defined in Random, which SystemRandom
inherits from. Just for clarity

On Tue, 27 Dec 2016 at 22:08 Josh Rosenberg <report at bugs.python.org> wrote:

>
> Josh Rosenberg added the comment:
>
> SystemRandom._randbelow has this problem, perhaps it should be fixed
> there, not in one of many possible wrappers for it?
>
> ----------
> nosy: +josh.r
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue29061>
> _______________________________________
>

----------

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


More information about the Python-bugs-list mailing list