How unique is UUID?

后端 未结 11 1969
终归单人心
终归单人心 2020-11-22 05:40

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 s

11条回答
  •  孤城傲影
    2020-11-22 06:07

    Quoting from Wikipedia:

    Thus, anyone can create a UUID and use it to identify something with reasonable confidence that the identifier will never be unintentionally used by anyone for anything else

    It goes on to explain in pretty good detail on how safe it actually is. So to answer your question: Yes, it's safe enough.

提交回复
热议问题