]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove the redundant and poorly worded warning message.
authorRaymond Hettinger <python@rcn.com>
Sat, 10 May 2014 21:05:28 +0000 (14:05 -0700)
committerRaymond Hettinger <python@rcn.com>
Sat, 10 May 2014 21:05:28 +0000 (14:05 -0700)
The paragraph above already says, clearly and correctly, that
"However, being completely deterministic, it is not suitable for
all purposes, and is completely unsuitable for cryptographic purposes."

Also we should make any promises about SystemRandom or os.urandom()
being cryptographically secure (they may be, but be can't validate
that promise).  Further, those are actual random number generators
not psuedo-random number generators.

Doc/library/random.rst

index 11dd367f8af0d684cb2561a77b4999cc71df2117..ff9d2ae0bce1070149c357041cd2df190cd5291a 100644 (file)
@@ -43,12 +43,6 @@ The :mod:`random` module also provides the :class:`SystemRandom` class which
 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: