guloic
guloic
I'm using windows and I need to use luadec. What do I need to do?
I'm checking why it behaves differently. I tried [this python library](https://github.com/wc-duck/pymmh3) and it outputs correct hashes ```python import pymmh3 as mmh3 mmh3.hash('foo') # prints -156908512 ```
Okay. I have a patch. **Patch** ```diff diff --git a/murmurhash.js b/murmurhash.js index 6a73210..a4bbc73 100644 --- a/murmurhash.js +++ b/murmurhash.js @@ -117,7 +117,14 @@ h1 = ((((h1 & 0xffff) * 0xc2b2ae35) +...
Created PR.
Actually, it's not really an issue. `node-murmurhash` is producing unsigned hashes by default, while [the python library](https://github.com/hajimes/mmh3) is producing signed hashes by default. Instead of a permanent code change, maybe...
Created PR - https://github.com/garycourt/murmurhash-js/pull/15/files