From ESOUI Wiki
This function takes a string and hashes it, returning a number.
- The string to hash.
local num = HashString("John Zenimax") -- 3997345353 as of this writing
- Zenimax's code uses this to rapidly check whether a Guild's Message of the Day has changed: instead of comparing the last received message to the most recent message (both of which could be fairly long strings), Zenimax hashes the strings and compares the hashes.
- This function produces consistent results given consistent inputs; there's no randomization.
- The hashing algorithm is not documented. This should probably not be used where security is a major concern.