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

Fix hash prefix collision #50

Closed
wants to merge 1 commit into from

Conversation

niklasf
Copy link

@niklasf niklasf commented Jun 11, 2022

For example (UniCase::new("prefix"), UniCase::new("suffix")) would always collide with (Unicase::new("pre"), Unicase::new("fixsuffix")).

See also rust-lang/rust#5257.

Don't see a great way to add a test case, because randomized hashers could still occasionally collide.

For example `(UniCase::new("prefix"), UniCase::new("suffix"))` would always
collide with `(Unicase::new("pre"), Unicase::new("fixsuffix"))`.

See also rust-lang/rust#5257.
@seanmonstar
Copy link
Owner

Sorry I completely missed this! I've merged a solution in #74.

@niklasf
Copy link
Author

niklasf commented Dec 24, 2024

No worries. Looks good.

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.

2 participants