Extracted from Pike v7.6 release 33 at 2006-10-17.
pike.ida.liu.se
[Top]

Method hash_7_4()


Method hash_7_4

int hash_7_4(string s)
int hash_7_4(string s, int max)

Description

Return an integer derived from the string s . The same string will always hash to the same value, also between processes.

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.

This function is byte-order dependant for wide strings.

See also

hash() , hash_7_0()