mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01: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()
|
|
}
|