Generates a simple hash from a string using the djb2 algorithm. This is a non-cryptographic hash function suitable for request identification.
The string to hash
A hexadecimal string representing the hash
const hash = generateSimpleHash("test string");console.log(hash); // "a5d7d2a9" Copy
const hash = generateSimpleHash("test string");console.log(hash); // "a5d7d2a9"
Generates a simple hash from a string using the djb2 algorithm. This is a non-cryptographic hash function suitable for request identification.