chore: Replace murmur3 with maphash

This commit is contained in:
H1JK
2023-06-10 17:35:19 +08:00
parent c57f17d094
commit 64b23257db
4 changed files with 122 additions and 114 deletions

View File

@ -11,3 +11,7 @@ func GlobalID(material string) (id [8]byte) {
*(*uint64)(unsafe.Pointer(&id[0])) = maphash.String(globalSeed, material)
return
}
func MapHash(material string) uint64 {
return maphash.String(globalSeed, material)
}