Skip to content

Commit 4e3c95a

Browse files
committed
add usedforsecurity flag to md5 hashing
1 parent 999e6cc commit 4e3c95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fortls/parse_fortran.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ def load_from_disk(self) -> tuple[str | None, bool | None]:
872872
return "Could not read/decode file", None
873873
else:
874874
# Check if files are the same
875-
hash = hashlib.md5(contents.encode("utf-8")).hexdigest()
875+
hash = hashlib.md5(contents.encode("utf-8"), usedforsecurity=False).hexdigest()
876876
if hash == self.hash:
877877
return None, False
878878

0 commit comments

Comments
 (0)