I tried https://github.com/spaolacci/murmur3,roberson-io/mmh3 and many go version. But I get the different result from python mmh3.
Python example:
import mmh3
print(mmh3.hash("foods",45))
Go example:
package main
import (
"fmt"
"github.com/spaolacci/murmur3"
)
func main() {
mHash := murmur3.New32WithSeed(45)
mHash.Write([]byte("foods"))
hashNum := mHash.Sum32()
fmt.Println(hashNum)
fmt.Printf("%d\n", murmur3.Sum64WithSeed([]byte("foods"), 45))
}
I want to get same hash value with python mmh3. So how to get the same hash value with mmh3 from python?