This commit is contained in:
Piotr Idzik 2025-06-30 15:07:46 +00:00 committed by GitHub
commit 76ed72a22a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,8 +68,6 @@ class StrongRandom(object):
raise ValueError("randrange step argument must not be zero")
num_choices = ceil_div(stop - start, step)
if num_choices < 0:
num_choices = 0
if num_choices < 1:
raise ValueError("empty range for randrange(%r, %r, %r)" % (start, stop, step))