From: Andrew M. Kuchling Date: Mon, 22 Feb 2010 02:29:10 +0000 (+0000) Subject: #7076: mention SystemRandom class near start of the module docs; reword change descri... X-Git-Tag: v2.7a4~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25d6ddd38b812314be1b8ddb81bc81725de6e212;p=thirdparty%2FPython%2Fcpython.git #7076: mention SystemRandom class near start of the module docs; reword change description for clarity. Noted by Shawn Ligocki. --- diff --git a/Doc/library/random.rst b/Doc/library/random.rst index b6b0b6c4dafe..486e47545176 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: