[Python-checkins] cpython (3.3): Issue #16190: fix random module recommendation to use ssl.RAND_bytes().
antoine.pitrou
python-checkins at python.org
Fri Aug 16 19:21:35 CEST 2013
http://hg.python.org/cpython/rev/9df0501fab35
changeset: 85190:9df0501fab35
branch: 3.3
parent: 85186:3105b78d3434
user: Antoine Pitrou <solipsis at pitrou.net>
date: Fri Aug 16 19:19:40 2013 +0200
summary:
Issue #16190: fix random module recommendation to use ssl.RAND_bytes().
files:
Doc/library/random.rst | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -45,9 +45,9 @@
.. 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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list