Extracted from Pike v7.4 release 35 at 2003-12-09.
pike.ida.liu.se
[Top]
predef::

Method hash_7_0()


Method hash_7_0

int hash_7_0(string s)
int hash_7_0(string s, int max)

Description

This function will return an int derived from the string s . The same string will always hash to the same value. If max is given, the result will be >= 0 and < max , otherwise the result will be >= 0 and <= 0x7fffffff.

Note

This function is provided for backward compatibility reasons.

See also

hash()