Revise the hash function.