Skip to content

Commit ecf354c

Browse files
committed
Ignore warning about use of non-cryptographic RNGs
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
1 parent ff51f4d commit ecf354c

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
@@ -188,7 +188,7 @@ def _calculate_sleep(
188188
pass
189189

190190
backoff = self.backoff_factor * (2 ** (attempts_made - 1))
191-
jitter = (backoff * self.jitter_ratio) * random.choice([1, -1])
191+
jitter = (backoff * self.jitter_ratio) * random.choice([1, -1]) # noqa: S311
192192
total_backoff = backoff + jitter
193193
return min(total_backoff, self.max_backoff_wait)
194194

0 commit comments

Comments
 (0)