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: diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index d29bd7bb77f..a115c1d026b 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -187,9 +187,11 @@ following table: If the first character is not one of these, ``'@'`` is assumed. -Native byte order is big-endian or little-endian, depending on the host system. -For example, Motorola and Sun processors are big-endian; Intel and DEC -processors are little-endian. +Native byte order is big-endian or little-endian, depending on the host +system. For example, Intel x86 and AMD64 (x86-64) are little-endian; +Motorola 68000 and PowerPC G5 are big-endian; ARM and Intel Itanium feature +switchable endianness (bi-endian). Use ``sys.byteorder`` to check the +endianness of your system. Native size and alignment are determined using the C compiler's ``sizeof`` expression. This is always combined with native byte order.