From 25d6ddd38b812314be1b8ddb81bc81725de6e212 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Mon, 22 Feb 2010 02:29:10 +0000 Subject: [PATCH] #7076: mention SystemRandom class near start of the module docs; reword change description for clarity. Noted by Shawn Ligocki. --- Doc/library/random.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/library/random.rst b/Doc/library/random.rst index b6b0b6c4daf..486e4754517 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: