From e1bb83676ab12f8866471ae7b1f926741e8741bf Mon Sep 17 00:00:00 2001 From: Caleb Parnell Lampen Date: Tue, 7 Jan 2025 16:28:18 -0700 Subject: [PATCH] Set usedforsecurity=False in color_of function --- distributed/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distributed/utils.py b/distributed/utils.py index 7a127621eb7..bd8711d6ca6 100644 --- a/distributed/utils.py +++ b/distributed/utils.py @@ -1283,7 +1283,7 @@ def command_has_keyword(cmd, k): @toolz.memoize def color_of(x, palette=palette): - h = md5(str(x).encode()) + h = md5(str(x).encode(), usedforsecurity=False) n = int(h.hexdigest()[:8], 16) return palette[n % len(palette)]