From 0fff00382ec2b29466122a82e0de57a70d7d53be Mon Sep 17 00:00:00 2001 From: Vitaly Zdanevich Date: Mon, 22 Jan 2024 22:28:40 +0300 Subject: [PATCH] concurrent_map.go: fnv32(): add link to Wikipedia --- concurrent_map.go | 1 + 1 file changed, 1 insertion(+) diff --git a/concurrent_map.go b/concurrent_map.go index baccab0..2364b09 100644 --- a/concurrent_map.go +++ b/concurrent_map.go @@ -342,6 +342,7 @@ func strfnv32[K fmt.Stringer](key K) uint32 { return fnv32(key.String()) } +// https://en.wikipedia.org/wiki/Fowler–Noll–Vo_hash_function func fnv32(key string) uint32 { hash := uint32(2166136261) const prime32 = uint32(16777619)