diff options
author | Matthias Görgens <matthias.goergens@gmail.com> | 2022-08-08 23:22:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 23:22:26 (GMT) |
commit | 8a55e2f9200288c353937cd5a0b83f0a3e282092 (patch) | |
tree | 2eb2fc5a7818bd1ede66d1f12fde38ccc02a8e63 | |
parent | 41c939cb35cda395388a775156c367676efffebe (diff) | |
download | cpython-8a55e2f9200288c353937cd5a0b83f0a3e282092.zip cpython-8a55e2f9200288c353937cd5a0b83f0a3e282092.tar.gz cpython-8a55e2f9200288c353937cd5a0b83f0a3e282092.tar.bz2 |
bpo-37000: Remove obsolete comment in _randbelow_with_getrandbits (#95775)
-rw-r--r-- | Lib/random.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py index 7662730..c70294e 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -239,7 +239,7 @@ class Random(_random.Random): "Return a random int in the range [0,n). Defined for n > 0." getrandbits = self.getrandbits - k = n.bit_length() # don't use (n-1) here because n can be 1 + k = n.bit_length() r = getrandbits(k) # 0 <= r < 2**k while r >= n: r = getrandbits(k) |