MCPcopy Create free account
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / hashfunction

Method hashfunction

Hash.py:56–57  ·  view source on GitHub ↗
(self, key, size)

Source from the content-addressed store, hash-verified

54 self.data[nextslot] = data
55
56 def hashfunction(self, key, size):
57 return key%size
58
59 def rehash(self, oldhash, size):
60 return (oldhash+1)%size

Callers 2

putMethod · 0.95
getMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected