def _get_alternate3_index(self, index, fingerprint): alt_index3 = ( index ^ hashutils_DJBhash.hash_code(fingerprint)) % self.capacity return alt_index3
def _get_index(self, item): index = hashutils_DJBhash.hash_code(item) % self.capacity return index
def _get_alternate2_index(self, index, fingerprint): alt_index2 = (index ^ (hashutils_DJBhash.hash_code(fingerprint) & 0b10101010101010)) % self.capacity return alt_index2
def _get_fp_hash_value(self, fingerprint): fp_hash_value = hashutils_DJBhash.hash_code(fingerprint) return fp_hash_value