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