Create hashingFunction