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

Doesn't result in a real hash #9

Open
withinboredom opened this issue May 23, 2021 · 1 comment
Open

Doesn't result in a real hash #9

withinboredom opened this issue May 23, 2021 · 1 comment

Comments

@withinboredom
Copy link

Testing with the value "test", I receive the int value: 332557242 (see here: https://dotnetfiddle.net/p72M2c)

When compared to other implementations in other languages, this is an incorrect value (should be 3127628307).

@sksk571
Copy link

sksk571 commented Jun 9, 2022

332557242 is a reversed -1167338989, which is a signed version of 3127628307. Here is the code that calculates correct result https://dotnetfiddle.net/HYjNa6 The library implements algorithm correctly

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

No branches or pull requests

2 participants