title: How to check hash collision
body: <p>I created a function in php that generates a hash from a number (id), and I need to check that there will be no collision (two or more ids have the same hash).
  Which function I can use to verify that there will be no collision in the nexts 99999999 ids?
  Thanks!</p>