1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
[;1m phash2(Term)[0m
There is no documentation for phash2/2
[;1m phash2(Term, Range)[0m
Portable hash function that gives the same hash for the same
Erlang term regardless of machine architecture and ERTS version.
The function returns a hash value for [;;4mTerm[0m within the range [;;4m[0m
[;;4m0..Range-1[0m. The maximum value for [;;4mRange[0m is 2^32. When without
argument [;;4mRange[0m, a value in the range 0..2^27-1 is returned.
This BIF is always to be used for hashing terms. It distributes
small integers better than [;;4mphash/2[0m, and it is faster for bignums
and binaries.
Notice that the range [;;4m0..Range-1[0m is different from the range of [;;4m[0m
[;;4mphash/2[0m, which is [;;4m1..Range[0m.
|