We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8571f7d commit 35b5039Copy full SHA for 35b5039
mypy/util.py
@@ -476,7 +476,9 @@ def hash_digest(data: bytes) -> str:
476
accidental collision, but we don't really care about any of the
477
cryptographic properties.
478
"""
479
- return hashlib.md5(data).hexdigest()
+ # Once we drop Python 3.5 support, we should consider using
480
+ # blake2b, which is faster.
481
+ return hashlib.sha256(data).hexdigest()
482
483
484
class FancyFormatter:
0 commit comments