fix(profiling): use sha256 for sanity corpus checksums

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Trenton H
2026-04-11 14:50:21 -07:00
parent a8dc332abb
commit ea14c0b06f

View File

@@ -76,7 +76,7 @@ def sanity_corpus(tmp_path_factory, module_db):
docs = []
for i in range(NUM_DOCS):
content = f"document content for doc {i}"
checksum = hashlib.md5(content.encode(), usedforsecurity=False).hexdigest()
checksum = hashlib.sha256(content.encode()).hexdigest()
orig_filename = f"{i:07d}.pdf"
arch_filename = f"{i:07d}.pdf"