xor_3.py 172 B

1234
  1. def fimurhalt(number):
  2. hash = (31 * 102334155 * (number << 15)) & 0xFFFFFFFFFFFFFFFF
  3. hash = ((hash << 7) | (hash >> (32 - 7)) ) & 0xFFFFFFFFFFFFFFFF
  4. return hash