summaryrefslogtreecommitdiff
path: root/Lib/random.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-09-04 11:17:48 -0700
committerRaymond Hettinger <python@rcn.com>2016-09-04 11:17:48 -0700
commit6579502c7e4519243dfe3af1b1e646b168b01dd6 (patch)
treebac3d252542fa2fe1282911be1538a33f7a30820 /Lib/random.py
parente02bfd0ba0a93d56b5002753842b29b0aa5f59a5 (diff)
parent16eb827b33cc271eebd521246ebefd4d49470df8 (diff)
downloadcpython-git-6579502c7e4519243dfe3af1b1e646b168b01dd6.tar.gz
Merge
Diffstat (limited to 'Lib/random.py')
-rw-r--r--Lib/random.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/random.py b/Lib/random.py
index 13e115a8f4..5abcdbcf22 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -96,11 +96,13 @@ class Random(_random.Random):
None or no argument seeds from current time or from an operating
system specific randomness source if available.
- For version 2 (the default), all of the bits are used if *a* is a str,
- bytes, or bytearray. For version 1, the hash() of *a* is used instead.
-
If *a* is an int, all bits are used.
+ For version 2 (the default), all of the bits are used if *a* is a str,
+ bytes, or bytearray. For version 1 (provided for reproducing random
+ sequences from older versions of Python), the algorithm for str and
+ bytes generates a narrower range of seeds.
+
"""
if a is None: