[Python-checkins] cpython (2.7): Issue #16190: fix random module recommendation to use ssl.RAND_bytes().
antoine.pitrou
python-checkins at python.org
Fri Aug 16 19:21:38 CEST 2013
http://hg.python.org/cpython/rev/48b618a9ad10
changeset: 85192:48b618a9ad10
branch: 2.7
parent: 85185:7339dcff171f
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 | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -60,6 +60,13 @@
uses the system function :func:`os.urandom` to generate random numbers
from sources provided by the operating system.
+.. warning::
+
+ 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