summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-08-16 17:20:04 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-08-16 17:20:04 (GMT)
commit53e5b5e5815f04f47f93ec89cc11e6c2a250b497 (patch)
tree7bf6aaaf20a3ece5f9cda93cf8ea9cceed8b3265
parentd88f735f1713cc436934be93bf8be98129974b74 (diff)
parentba69008bd0999d8fd088b8e66caf019baf73c576 (diff)
downloadcpython-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.rst6
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: