diff options
author | Raymond Hettinger <python@rcn.com> | 2014-05-10 21:05:28 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-05-10 21:05:28 (GMT) |
commit | a7894f7f4cff412677b3f57a89a98717e0a8f81a (patch) | |
tree | e62ad274ab18a2d9bb57de16fdd24ebb7a342aa2 /Doc/library/random.rst | |
parent | 09122f84fc1e6082bacb6b11930f2ff4f81bcda4 (diff) | |
download | cpython-a7894f7f4cff412677b3f57a89a98717e0a8f81a.zip cpython-a7894f7f4cff412677b3f57a89a98717e0a8f81a.tar.gz cpython-a7894f7f4cff412677b3f57a89a98717e0a8f81a.tar.bz2 |
Remove the redundant and poorly worded warning message.
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.
Diffstat (limited to 'Doc/library/random.rst')
-rw-r--r-- | Doc/library/random.rst | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst index 11dd367..ff9d2ae 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -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: |