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

XXH3_64 implementation gives incompatible hash values for short input lengths #42

Closed
oertl opened this issue May 26, 2022 · 1 comment · Fixed by #43
Closed

XXH3_64 implementation gives incompatible hash values for short input lengths #42

oertl opened this issue May 26, 2022 · 1 comment · Fixed by #43

Comments

@oertl
Copy link

oertl commented May 26, 2022

Some short inputs with 1,2, or 3 bytes lead to different hash values compared to the native reference implementation from https://github.com/Cyan4973/xxHash. The behavior can be reproduced with this unit test https://github.com/dynatrace-oss/hash4j/blob/01e8ed429c61acd7735967b2ba472c80d4616337/src/test/java/com/dynatrace/hash4j/hashing/CrossCheckTest.java#L195 which checks the compatibility with the reference implementation.

@mattmook
Copy link
Member

Thanks @oertl for the bug report. Version 0.10.1 is being released with the bug fix.

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 a pull request may close this issue.

2 participants