mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-09-20 20:45:58 +08:00
20 lines
296 B
Go
20 lines
296 B
Go
package maphash
|
|
|
|
import "hash/maphash"
|
|
|
|
type Seed = maphash.Seed
|
|
|
|
func MakeSeed() Seed {
|
|
return maphash.MakeSeed()
|
|
}
|
|
|
|
type Hash = maphash.Hash
|
|
|
|
func Bytes(seed Seed, b []byte) uint64 {
|
|
return maphash.Bytes(seed, b)
|
|
}
|
|
|
|
func String(seed Seed, s string) uint64 {
|
|
return maphash.String(seed, s)
|
|
}
|