Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions concurrent_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down