Skip to content

Commit

Permalink
Merge branch 'Sygil-Dev:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroCool940711 authored Feb 1, 2024
2 parents ff25e70 + f2ebc71 commit d811e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/whoosh/filedb/filetables.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def cdb_hash(key):


def md5_hash(key):
if sys.version_info[0] < 3 or sys.version_info[1] < 9:
if sys.version_info < (3, 9):
return int(md5(key).hexdigest(), 16) & 0xffffffff
return int(md5(key, usedforsecurity=False).hexdigest(), 16) & 0xffffffff

Expand Down

0 comments on commit d811e06

Please sign in to comment.