Skip to content

Backport hash improvements from Scala 2.13.16's MurmurHash3 #4719

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

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

rossabaker
Copy link
Member

Either this or #4718 is sufficient to fix #4716. I propose we want both, but they are orthogonal.

Original problem and solution are from scala/scala#10912.

@rossabaker
Copy link
Member Author

As noted on #4716, testing the inequality of hash codes is tricky business, but I think we could imagine a test that checks against the collision that motivated this ticket in the first place. (The standard library did!)

@rossabaker rossabaker merged commit 8aca8a8 into main Mar 6, 2025
33 checks passed
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.

Chain#hashCode is consistent with List#hashCode failure
3 participants