diff options
| author | Matt Gardner <[email protected]> | 2017-08-07 22:46:42 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-08-08 17:31:09 -0400 |
| commit | f490afa5dc12c43ea8f97c381a526ea3f74abf61 (patch) | |
| tree | e5f4e51ee9777f5833928582da867c515995445e | |
| parent | Remove GuildChannel.is_default (diff) | |
| download | discord.py-f490afa5dc12c43ea8f97c381a526ea3f74abf61.tar.xz discord.py-f490afa5dc12c43ea8f97c381a526ea3f74abf61.zip | |
Fixed ExponentialBackoff not working when integral
| -rw-r--r-- | discord/backoff.py | 2 |
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 |