C4 Engine
C4 Engine API Documentation

Text::Hash

Defined in:  TSText.h
Calculates the hash value for a character string.
Prototype

uint32 Hash(const char *text);

Parameters
text A pointer to a null-terminated character string.
Description
The Hash function returns a 32-bit hash value for the character string specified by the text parameter. The hash algorithm is designed so that different strings appear to have random hash values even if the strings only differ by a small amount.

The hash value returned for the empty string is zero.
NOTE. The Hash function is not intended for cryptographic applications and does not produce a secure hash value. It should not be used for things like password storage.
See Also

HashTable