Skip to content

Commit e1bb836

Browse files
author
Caleb Parnell Lampen
committed
Set usedforsecurity=False in color_of function
1 parent 94222c0 commit e1bb836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distributed/utils.py

Lines changed: 1 addition & 1 deletion
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)