def _get_alternate3_index(self, index, fingerprint): alt_index3 = (index ^ hashutils.hash_code(fingerprint)) % self.capacity return alt_index3
def _get_alternate1_index(self, index, fingerprint): alt_index1 = (index ^ (hashutils.hash_code(fingerprint) & 0b11111111100000000)) % self.capacity return alt_index1
def _get_alternate2_index(self, index, fingerprint): alt_index2 = (index ^ (hashutils.hash_code(fingerprint) & 0b00000000011111111)) % self.capacity return alt_index2
def _get_index(self, item): index = hashutils.hash_code(item) % self.capacity return index