xor_2.py 183 B

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