summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-02-22 02:29:10 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2010-02-22 02:29:10 (GMT)
commit25d6ddd38b812314be1b8ddb81bc81725de6e212 (patch)
tree21c8836cb56dad98e7e9268f7a782c140001af54
parentc7337b8b3a8fd2ed446d10b7fe5436314a0030b0 (diff)
downloadcpython-25d6ddd38b812314be1b8ddb81bc81725de6e212.zip
cpython-25d6ddd38b812314be1b8ddb81bc81725de6e212.tar.gz
cpython-25d6ddd38b812314be1b8ddb81bc81725de6e212.tar.bz2
#7076: mention SystemRandom class near start of the module docs; reword change description for clarity. Noted by Shawn Ligocki.
-rw-r--r--Doc/library/random.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index b6b0b6c..486e475 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -52,7 +52,11 @@ known to fail some stringent randomness tests. See the references below for a
recent variant that repairs these flaws.
.. versionchanged:: 2.3
- Substituted MersenneTwister for Wichmann-Hill.
+ MersenneTwister replaced Wichmann-Hill as the default generator.
+
+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.
Bookkeeping functions: