2 ms·
The identity function is a perfect hash function, no quotes needed. Several programming languages uses it as the default function for hashing integers. But it d
by bjourne 8y ago
The identity function is a perfect hash function, no quotes needed. Several programming languages uses it as the default function for hashing integers. But it doesn't have a good avalanche which is important for some use cases. You could, for example, use it to make guessing urls harder.
https://en.wikipedia.org/wiki/Avalanche_effect https://en.wikipedia.org/wiki/Avalanche_effect