MCPcopy 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
73func generateHash(s string) uint8 {
74 hash := fnv.New32a()
75 hash.Write([]byte(s))
76 return uint8(hash.Sum32() % 256)
77}

Callers 4

AddMethod · 0.85
GetMethod · 0.85
SetMethod · 0.85
RemoveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected