TIL: Using phash2 for data partitioning
In programming, we often need fairly distribution of data. Using phash2 we can get the same hash for the same Erlang term regardless of machine architecture and ERTS version. This fast function should always be used for hashing any data and limiting the result to a range of integers.
Check: https://bartoszgorka.com/using-phash2-data-partitioning
Read next Swoosh Gallery