diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-08-16 17:20:04 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-08-16 17:20:04 (GMT) |
commit | 53e5b5e5815f04f47f93ec89cc11e6c2a250b497 (patch) | |
tree | 7bf6aaaf20a3ece5f9cda93cf8ea9cceed8b3265 | |
parent | d88f735f1713cc436934be93bf8be98129974b74 (diff) | |
parent | ba69008bd0999d8fd088b8e66caf019baf73c576 (diff) | |
download | cpython-53e5b5e5815f04f47f93ec89cc11e6c2a250b497.zip cpython-53e5b5e5815f04f47f93ec89cc11e6c2a250b497.tar.gz cpython-53e5b5e5815f04f47f93ec89cc11e6c2a250b497.tar.bz2 |
Issue #16190: fix random module recommendation to use ssl.RAND_bytes().
-rw-r--r-- | Doc/library/random.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst index 55c9d70..11dd367 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -45,9 +45,9 @@ from sources provided by the operating system. .. warning:: - The generators of the :mod:`random` module should not be used for security - purposes. Use :func:`ssl.RAND_bytes` if you require a cryptographically - secure pseudorandom number generator. + The pseudo-random generators of this module should not be used for + security purposes. Use :func:`os.urandom` or :class:`SystemRandom` if + you require a cryptographically secure pseudo-random number generator. Bookkeeping functions: |