I took a shot at the math behind this at https://www.codepasta.com/databases/2020/09/10/shorter-uniqu...
Using the equation listed in the article I couldn't generate a collision so far. Yet, I still check (in code) for id collision, and pick new id, just to be 100% sure.