mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
12 lines
174 B
Go
12 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()
|
|
}
|