Is a GUID unique 100% of the time?

前端 未结 22 2842
孤独总比滥情好
孤独总比滥情好 2020-11-22 01:31

Is a GUID unique 100% of the time?

Will it stay unique over multiple threads?

22条回答
  •  一向
    一向 (楼主)
    2020-11-22 02:22

    GUID stands for Global Unique Identifier

    In Brief: (the clue is in the name)

    In Detail: GUIDs are designed to be unique; they are calculated using a random method based on the computers clock and computer itself, if you are creating many GUIDs at the same millisecond on the same machine it is possible they may match but for almost all normal operations they should be considered unique.

提交回复
热议问题