diff options
author | Raymond Hettinger <python@rcn.com> | 2016-09-04 18:17:48 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-09-04 18:17:48 (GMT) |
commit | 6579502c7e4519243dfe3af1b1e646b168b01dd6 (patch) | |
tree | bac3d252542fa2fe1282911be1538a33f7a30820 /Doc | |
parent | e02bfd0ba0a93d56b5002753842b29b0aa5f59a5 (diff) | |
parent | 16eb827b33cc271eebd521246ebefd4d49470df8 (diff) | |
download | cpython-6579502c7e4519243dfe3af1b1e646b168b01dd6.zip cpython-6579502c7e4519243dfe3af1b1e646b168b01dd6.tar.gz cpython-6579502c7e4519243dfe3af1b1e646b168b01dd6.tar.bz2 |
Merge
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/random.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst index e7b81ad..7c5b9e5 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -64,8 +64,11 @@ Bookkeeping functions: If *a* is an int, it is used directly. With version 2 (the default), a :class:`str`, :class:`bytes`, or :class:`bytearray` - object gets converted to an :class:`int` and all of its bits are used. With version 1, - the :func:`hash` of *a* is used instead. + object gets converted to an :class:`int` and all of its bits are used. + + With version 1 (provided for reproducing random sequences from older versions + of Python), the algorithm for :class:`str` and :class:`bytes` generates a + narrower range of seeds. .. versionchanged:: 3.2 Moved to the version 2 scheme which uses all of the bits in a string seed. |