From 15a574857466d7768fbc2c633aa9cfb31ada4163 Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Tue, 5 Sep 2023 05:35:16 -0700 Subject: [PATCH] Ignore warnings about use of non-cryptographic RNGs Signed-off-by: Mattt Zmuda --- replicate/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replicate/client.py b/replicate/client.py index a88a9b9..344004d 100644 --- a/replicate/client.py +++ b/replicate/client.py @@ -181,7 +181,7 @@ def _calculate_sleep( pass backoff = self.backoff_factor * (2 ** (attempts_made - 1)) - jitter = (backoff * self.jitter_ratio) * random.choice([1, -1]) + jitter = (backoff * self.jitter_ratio) * random.choice([1, -1]) # noqa: S311 total_backoff = backoff + jitter return min(total_backoff, self.max_backoff_wait)