Skip to content

🔧 Non-deterministic hash for scan cache #81

Description

@ajianaz

Description

std::collections::hash_map::DefaultHasher in src/commands/scan.rs:181 is not deterministic across Rust compiler versions. Scan cache could be invalidated when the binary is recompiled.

Suggested Fix

Use sha2 (the performance difference is negligible for file hashing).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions