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 /Lib/random.py | |
parent | e02bfd0ba0a93d56b5002753842b29b0aa5f59a5 (diff) | |
parent | 16eb827b33cc271eebd521246ebefd4d49470df8 (diff) | |
download | cpython-6579502c7e4519243dfe3af1b1e646b168b01dd6.zip cpython-6579502c7e4519243dfe3af1b1e646b168b01dd6.tar.gz cpython-6579502c7e4519243dfe3af1b1e646b168b01dd6.tar.bz2 |
Merge
Diffstat (limited to 'Lib/random.py')
-rw-r--r-- | Lib/random.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/random.py b/Lib/random.py index 13e115a..5abcdbc 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: |