Files
seaweedFS/weed/util/randomizer.go
2019-01-28 11:55:33 -08:00

10 lines
139 B
Go

package util
import "hash/fnv"
func HashBytesToInt64(x []byte) int64 {
hash := fnv.New64()
hash.Write(x)
return int64(hash.Sum64())
}