]> granicus.if.org Git - python/commit
bpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 8 May 2018 12:45:15 +0000 (15:45 +0300)
committerGitHub <noreply@github.com>
Tue, 8 May 2018 12:45:15 +0000 (15:45 +0300)
commitec1622d56c80d15740f7f8459c9a79fd55f5d3c7
tree746876d28f338443003d4de44d8d8ddaaada016b
parentd54cfb160c626626394e2f171d3ccfe03309f34e
bpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563)

random() takes precedence over getrandbits() if defined later
in the class tree.
Lib/random.py
Lib/test/test_random.py