aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Gardner <[email protected]>2017-08-07 22:46:42 -0400
committerRapptz <[email protected]>2017-08-08 17:31:09 -0400
commitf490afa5dc12c43ea8f97c381a526ea3f74abf61 (patch)
treee5f4e51ee9777f5833928582da867c515995445e
parentRemove GuildChannel.is_default (diff)
downloaddiscord.py-f490afa5dc12c43ea8f97c381a526ea3f74abf61.tar.xz
discord.py-f490afa5dc12c43ea8f97c381a526ea3f74abf61.zip
Fixed ExponentialBackoff not working when integral
-rw-r--r--discord/backoff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/backoff.py b/discord/backoff.py
index bfe87b17..3fa52d9f 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