summaryrefslogtreecommitdiffstats
path: root/Doc/library/random.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-08-16 17:19:40 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-08-16 17:19:40 (GMT)
commitba69008bd0999d8fd088b8e66caf019baf73c576 (patch)
treebb3e5e9ccf9f5ff86675508ab07a315ce74795df /Doc/library/random.rst
parent29c3fc5d8f9e14e10783ab0ecc1bd15e1144cd07 (diff)
downloadcpython-ba69008bd0999d8fd088b8e66caf019baf73c576.zip
cpython-ba69008bd0999d8fd088b8e66caf019baf73c576.tar.gz
cpython-ba69008bd0999d8fd088b8e66caf019baf73c576.tar.bz2
Issue #16190: fix random module recommendation to use ssl.RAND_bytes().
Diffstat (limited to 'Doc/library/random.rst')
-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: