diff --git a/discord/backoff.py b/discord/backoff.py index bfe87b17b..3fa52d9fe 100644 --- a/discord/backoff.py +++ b/discord/backoff.py @@ -61,7 +61,7 @@ class ExponentialBackoff: rand = random.Random() rand.seed() - self._randfunc = rand.rand_range if integral else rand.uniform + self._randfunc = rand.randrange if integral else rand.uniform def delay(self): """Compute the next delay