- Method hash
Return an integer derived from the string
s. The same string always hashes to the same value, also between processes, architectures, and Pike versions (see compatibility notes below, though).
maxis given, the result will be >= 0 and <
max, otherwise the result will be >= 0 and <= 0x7fffffff.
The hash algorithm was changed in Pike 8.1. If you want a hash that is compatible with Pike 8.0 and earlier, use hash_8_0().
The hash algorithm was also changed in Pike 7.1. If you want a hash that is compatible with Pike 7.0 and earlier, use hash_7_0().
- See also