Likelihood of collision using most significant bits of a UUID in Java

If I’m using Long uuid = UUID.randomUUID().getMostSignificantBits() how likely is it to get a collision. It cuts off the least significant bits, so there is a possibility that you run into a collision, right?

5 Answers
5

Leave a Comment