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

latest/recent rev appears to break ahash/compile-time-rng usage #478

Open
sleffler opened this issue Oct 23, 2023 · 2 comments
Open

latest/recent rev appears to break ahash/compile-time-rng usage #478

sleffler opened this issue Oct 23, 2023 · 2 comments

Comments

@sleffler
Copy link

We've been using hashbrown in an embedded environment (no os rng) with:

hashbrown = { version = "0.11", features = ["ahash-compile-time-rng"] }

recent (maybe) changes removed the "ahash-compile-time-rng" feature. The current hashbrown Cargo.toml depends on ahash with:

ahash = { version = "0.8.0", default-features = false, optional = true }

which causes ahash to use fixed entropy to generate keys. I don't see how to configure hashbrown so that it depends on ahash with compile-time-rng? (w/o forking/patching the crate)

Am I missing something?

@Amanieu
Copy link
Member

Amanieu commented Oct 23, 2023

Hashbrown doesn't make any guarantees about the hasher and opts for the fastest performance. If you have specific requirements for a random seed then you should use the ahash crate directly.

@sleffler
Copy link
Author

sleffler commented Oct 24, 2023 via email

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

No branches or pull requests

2 participants