Change the hash generation function