murmurhash-net icon indicating copy to clipboard operation
murmurhash-net copied to clipboard

Doesn't result in a real hash

Open withinboredom opened this issue 4 years ago • 1 comments

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).

withinboredom avatar May 23 '21 11:05 withinboredom

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

sksk571 avatar Jun 09 '22 13:06 sksk571