def fimurhash(number): hash = (31 * 11400714819323198485 * (number << 15)) & 0xFFFFFFFFFFFFFFFF hash = ((hash << 7) | (hash >> (32 - 7)) ) & 0xFFFFFFFFFFFFFFFF return hash