Is a GUID unique 100% of the time?

前端 未结 22 2575
孤独总比滥情好
孤独总比滥情好 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:27

    For more better result the best way is to append the GUID with the timestamp (Just to make sure that it stays unique)

    Guid.NewGuid().ToString() + DateTime.Now.ToString();
    

提交回复
热议问题