mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
13 lines
174 B
Go
13 lines
174 B
Go
package hash
|
|
|
|
import (
|
|
"hash/fnv"
|
|
)
|
|
|
|
// FNVa computes a FNVa hash on a string
|
|
func FNVa(s string) uint32 {
|
|
h := fnv.New32a()
|
|
_, _ = h.Write([]byte(s))
|
|
return h.Sum32()
|
|
}
|