You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For my use case, I need deterministic hash maps/sets, but I can't seem to get the compile-time-rng or no-rng features to work in ahash. My Cargo.toml looks like this:
[package]
name = "determinism-test"version = "0.1.0"edition = "2021"
[dependencies]
ahash = { version = "0.8.3", default-features = false, features = ["std", "compile-time-rng"] }
and when I run the following code, the hash value is always different:
fnmain(){let s = RandomState::default();println!("{}", s.hash_one("foo"));}
The same is true if I use the no-rng feature instead of compile-time-rng, or if I fix the CONST_RANDOM_SEED environment variable.
The text was updated successfully, but these errors were encountered:
For my use case, I need deterministic hash maps/sets, but I can't seem to get the
compile-time-rng
orno-rng
features to work inahash
. My Cargo.toml looks like this:and when I run the following code, the hash value is always different:
The same is true if I use the
no-rng
feature instead ofcompile-time-rng
, or if I fix theCONST_RANDOM_SEED
environment variable.The text was updated successfully, but these errors were encountered: