What is the likelihood of hashing CRC32b being repeated?
For example, two different strings return the same code:
echo hash('crc32b', 'Teste');
What is the likelihood of hashing CRC32b being repeated?
For example, two different strings return the same code:
echo hash('crc32b', 'Teste');
It allows 2 32 different combinations (just over 4 billion), so the probability is this ratio, that is, 1 in ~ 4 billion.
As you get new intensities to compare, the probability is increasing faster and faster, until you reach billions of items, where the probability growth rate decreases and reaches 100% when you have 2 32 +1 used items. The graph:
Retrieved here (has the formula used to get at it).
Remembering that we are talking about probability, everything can happen, the only guarantees are 100% and 0% (only 1 or 0 items).