Quantcast
Channel: Do I need to verify the uniqueness of a GUID? - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by Jethro for Do I need to verify the uniqueness of a GUID?

Number of unique GUID's. If you really want to you can put in that check but I don't really see why with these odds.Number of GUIDs 340,282,366,920,938,463,463,374,607,431,770,000,000 *

View Article



Answer by Justin for Do I need to verify the uniqueness of a GUID?

This should be completely unneccessary - the whole point of GUIDs is to eliminate the need for these sorts of checks :-)You may be interesting in reading this interesting post on GUID generation...

View Article

Answer by Grant Thomas for Do I need to verify the uniqueness of a GUID?

This check is not needed at all - a GUID is guaranteed to be as unique as it can be, period, and has a really low chance of ever being duplicated, ever.From MSDN:A GUID is a 128-bit integer (16 bytes)...

View Article

Answer by James Hill for Do I need to verify the uniqueness of a GUID?

By definition, GUID's are unique (Globally unique identifier). It's unnecessary to check for uniqueness as uniqueness is the purpose of GUID's.The total number of unique keys is 2128 or 3.4×1038. This...

View Article

Do I need to verify the uniqueness of a GUID?

I saw this function in a source written by my coworkerprivate String GetNewAvailableId(){ String newId = Guid.NewGuid().ToString(); while (clientsById.ContainsKey(newId)) { newId =...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images