0

I want to use GUID as my ID System, And I want to be sure that I will always get unique ID.

Should I add a test for uniqueness?

Richard Ev
  • 51,030
  • 56
  • 187
  • 275
  • This is entirely up to you, but generating a new GUID (at least if you use the built in functions) is so unlikely to give a duplicate that it's not worth checking. – DavidG Sep 05 '16 at 14:12
  • It is only statistically unique. – paparazzo Sep 05 '16 at 14:13
  • 2
    Old New Thing post [When you start talking about numbers as small as 2⁻¹²², you have to start looking more closely at the things you thought were zero](https://blogs.msdn.microsoft.com/oldnewthing/20160114-00/?p=92851) – Damien_The_Unbeliever Sep 05 '16 at 14:14

0 Answers0