Hashes a string into a numeric value. Used for deterministic color generation.
The input string.
A numeric hash.
const hash = stringToHash('johndoe'); // Returns consistent numeric hash Copy
const hash = stringToHash('johndoe'); // Returns consistent numeric hash
Hashes a string into a numeric value. Used for deterministic color generation.