Hash function (non-cryptographic)