aboutsummaryrefslogtreecommitdiff
path: root/plugin/dnssec/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/dnssec/cache.go')
-rw-r--r--plugin/dnssec/cache.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/dnssec/cache.go b/plugin/dnssec/cache.go
index ea95b73b4..e1f503703 100644
--- a/plugin/dnssec/cache.go
+++ b/plugin/dnssec/cache.go
@@ -7,8 +7,8 @@ import (
)
// hash serializes the RRset and return a signature cache key.
-func hash(rrs []dns.RR) uint32 {
- h := fnv.New32()
+func hash(rrs []dns.RR) uint64 {
+ h := fnv.New64()
buf := make([]byte, 256)
for _, r := range rrs {
off, err := dns.PackRR(r, buf, 0, nil, false)
@@ -17,6 +17,6 @@ func hash(rrs []dns.RR) uint32 {
}
}
- i := h.Sum32()
+ i := h.Sum64()
return i
}