Steven D'Aprano added the comment: > _randbelow is a private api and it is not broken, it is just being > misused by the secrets module.
"Misused" seems a bit strong. Should I understand that you dislike the wrapper around _randbelow? The implementation was given in the PEP, and I don't remember any objections to it, but if you have an alternative implementation I'm not wedded to the idea of wrapping _randbelow. https://www.python.org/dev/peps/pep-0506/#id81 Thanks for the patch Brendan, and thanks Raymond for applying it. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29061> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com