Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ua-nick/Data-Structures-and-Algorithms
/ generateHash
Function
generateHash
HashTable/HashTable.go:73–77 ·
view source on GitHub ↗
(s string)
Source
from the content-addressed store, hash-verified
71
}
72
73
func
generateHash(s string) uint8 {
74
hash := fnv.New32a()
75
hash.Write([]byte(s))
76
return
uint8(hash.Sum32() % 256)
77
}
Callers
4
Add
Method · 0.85
Get
Method · 0.85
Set
Method · 0.85
Remove
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected