use FNV1a hash for cached certificates

fixes #383
This commit is contained in:
Marten Seemann
2017-01-04 10:56:36 +07:00
parent fe9da30cb2
commit 98ff7ccb50
2 changed files with 2 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ func splitHashes(hashes []byte) ([]uint64, error) {
}
func hashCert(cert []byte) uint64 {
h := fnv.New64()
h := fnv.New64a()
h.Write(cert)
return h.Sum64()
}

View File

@@ -13,7 +13,7 @@ import (
)
func byteHash(d []byte) []byte {
h := fnv.New64()
h := fnv.New64a()
h.Write(d)
s := h.Sum64()
res := make([]byte, 8)