getHash =
	(strFn, hashFunction = DEFAULTS.HASH_FUNCTION) =>
	() => {
		const hash = createHash(hashFunction);
		hash.update(strFn());
		const digest = /** @type {string} */ (hash.digest("hex"));
		return digest.slice(0, 4);
	}
Returns a function that returns a hash of the string
@param {ReturnStringCallback} strFn the function to get the string
@param {HashFunction=} hashFunction the hash function to use
@returns {ReturnStringCallback} a function that returns the hash of the string