-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Created generic for hashers #3
Conversation
Hi Luca, Can you please add xxh3 as a feature so that the hasher you added can call hash64_with_seed() in xxh3. Thanks, Jianshu |
I am not sure I understood, you can pass as a generic whatever you want. There is no need to add dependencies. |
That looks better to me. There are numerous hash crates, we don't need too many deps and features cause the |
please use cargo fmt format the codes. ut is failed now. |
|
||
/// By default, we use 2**14 registers like redis | ||
const DEFAULT_P: usize = 14_usize; | ||
|
||
/// Fixed seed | ||
const SEED: RandomState = RandomState::with_seeds( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing these will cause incompatiable changes.
We need to use fixed seed.
I am not sure what died there. |
This addresses issue #2, introducing a generic for arbitrary hashers. The default remains as before a seeded AHasher, but using the Default seeds from the library itself.