Fixed hash function.