Esempio n. 1
0
func Hashify(orig []byte) uint64 {
	h := mmh3.Hash128(orig)
	return binary.LittleEndian.Uint64(h)
}
Esempio n. 2
0
func GetHash(key []byte) uint64 {
	h := mmh3.Hash128(key)
	return binary.LittleEndian.Uint64(h)
}
Esempio n. 3
0
func mmh3Hex(s string) string {
	return fmt.Sprintf("%x", string(mmh3.Hash128([]byte(s))))
}