Skip to content

Commit

Permalink
Replace fnv with xxhash
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Feb 14, 2024
1 parent c3be77c commit 769c7cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions meta/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package meta
import (
"fmt"
"hash"
"hash/fnv"
"reflect"
"strconv"

Expand Down Expand Up @@ -66,7 +65,7 @@ func ObjectHash(in metav1.Object) string {
}
}

h := fnv.New64a()
h := xxh3.New()
DeepHashObject(h, obj)
return strconv.FormatUint(h.Sum64(), 10)
}
Expand All @@ -86,7 +85,7 @@ func GenerationHash(in metav1.Object) string {
}
obj["annotations"] = data
}
h := fnv.New64a()
h := xxh3.New()
DeepHashObject(h, obj)
return strconv.FormatUint(h.Sum64(), 10)
}
Expand Down

0 comments on commit 769c7cc

Please sign in to comment.