03-08-2020, 05:29 AM
I got it!
The asInt() function in the Java library returns a signed int32 in little-endian byte order. So in the node.js package I am using, the correct code to reproduce the hash is
The asInt() function in the Java library returns a signed int32 in little-endian byte order. So in the node.js package I am using, the correct code to reproduce the hash is
Code:
const h = murmurHash(buf, "buffer", 0xc58f1a7b);
hash = h.readInt32BE();