Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All instances of HashMap and HashSet now deterministic. #273

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RobertJacobsonCDC
Copy link
Collaborator

@RobertJacobsonCDC RobertJacobsonCDC commented Mar 11, 2025

All instances of HashMap and HashSet now import from the crate root so that it is easy to replace implementation.
Deterministic implementations of both data structures are provided in hashing.rs.
The same deterministic algorithm is used in random.rs for name offset in RNGs.
Fixed a bug in get_rng() where adding the seed offset might saturate.
Allowed "implicit hasher" for clippy.

This PR addresses the following issues:

…ot so that it is easy to replace implementation.

Deterministic implementations of both data structures are provided in `hashing.rs`.
The same deterministic algorithm is used in `random.rs` for name offset in RNGs.
Fixed a big in `get_rng()` where adding the seed offset might saturate.
Allowed "implicit hasher" for clippy.
@RobertJacobsonCDC RobertJacobsonCDC force-pushed the RobertJacobsonCDC_222_use_deterministic_hash branch from d56dfba to c400972 Compare March 11, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant