mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-04-12 11:08:51 +00:00
fix(profiling): use sha256 for sanity corpus checksums
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user