-
Notifications
You must be signed in to change notification settings - Fork 1
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
bad seed protection #2
Comments
@rurban I think this should be created in Zig repo? |
Yes, can you do that? |
Yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This hash function is like all MUM hashes vulnerable to some bad seeds, which when randomly selected by chance lead to security vulnerabilites, at least a high number of collisions independent of the key.
Please add a seed_init function and change the initial seed if you hit one of the bad seeds. See latest wyhash.
These bad seeds for final 3 (latest) are:
The CONDOM 2 variant should also work, but haven't finished testing it yet.
Haven't tested for your older final1, you can use the new smhasher BadSeeds test for it. final 3 is much faster on newer HW though. the magic numbers on final1 and 2 are a bit different, I think.
The text was updated successfully, but these errors were encountered: