How safe is it to use UUID to uniquely identify something (I'm using it for files uploaded to the server)? As I understand it, it is based off random numbers. However, it seems to me that given enough time, it would eventually repeat it self, just by pure chance. Is there a better system or a pattern of some type to alleviate this issue?
How unique is UUID
guiduniqueidentifieruuid
Related Topic
- Javascript – How to create a GUID / UUID
- Ny difference between a GUID and a UUID
- Ios – How to create a GUID/UUID using iOS
- Python – How to create a GUID/UUID in Python
- Android – unique Android device ID
- Javascript – How to test valid UUID/GUID
- Postgresql – Generating a UUID in Postgres for Insert statement
- Which UUID version to use
Best Answer
Very safe:
Caveat:
Source: The Random UUID probability of duplicates section of the Wikipedia article on Universally unique identifiers (link leads to a revision from December 2016 before editing reworked the section).
Also see the current section on the same subject on the same Universally unique identifier article, Collisions.