summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-09-04 18:17:48 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-09-04 18:17:48 (GMT)
commit6579502c7e4519243dfe3af1b1e646b168b01dd6 (patch)
treebac3d252542fa2fe1282911be1538a33f7a30820 /Doc
parente02bfd0ba0a93d56b5002753842b29b0aa5f59a5 (diff)
parent16eb827b33cc271eebd521246ebefd4d49470df8 (diff)
downloadcpython-6579502c7e4519243dfe3af1b1e646b168b01dd6.zip
cpython-6579502c7e4519243dfe3af1b1e646b168b01dd6.tar.gz
cpython-6579502c7e4519243dfe3af1b1e646b168b01dd6.tar.bz2
Merge
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/random.rst7
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.