Skip to content

Commit 15a5748

Browse files
committed
Ignore warnings about use of non-cryptographic RNGs
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
1 parent 12829c6 commit 15a5748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

replicate/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def _calculate_sleep(
181181
pass
182182

183183
backoff = self.backoff_factor * (2 ** (attempts_made - 1))
184-
jitter = (backoff * self.jitter_ratio) * random.choice([1, -1])
184+
jitter = (backoff * self.jitter_ratio) * random.choice([1, -1]) # noqa: S311
185185
total_backoff = backoff + jitter
186186
return min(total_backoff, self.max_backoff_wait)
187187

0 commit comments

Comments
 (0)