Skip to content

Commit 26e84a9

Browse files
relativisticCaleb Parnell Lampen
and
Caleb Parnell Lampen
authored
Set usedforsecurity=False in color_of function to enable FIPS compliance (#8979)
Co-authored-by: Caleb Parnell Lampen <[email protected]>
1 parent 8d8c878 commit 26e84a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distributed/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ def command_has_keyword(cmd, k):
12831283

12841284
@toolz.memoize
12851285
def color_of(x, palette=palette):
1286-
h = md5(str(x).encode())
1286+
h = md5(str(x).encode(), usedforsecurity=False)
12871287
n = int(h.hexdigest()[:8], 16)
12881288
return palette[n % len(palette)]
12891289

0 commit comments

Comments
 (0)