[issue27292] Warn users that os.urandom() can return insecure values

Larry Hastings report at bugs.python.org
Sat Jun 11 14:36:48 EDT 2016


Larry Hastings added the comment:

I would suggest weakening the one-line summary.  Currently the first line reads:

    Return a string of n random bytes suitable for cryptographic use.

I'd support adding some "weasel words" to this, e.g.:

    Return a string of n random bytes that should be suitable
    for cryptographic use.

----------

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


More information about the Python-bugs-list mailing list