How many times can you randomly generate a GUID before you risk duplicates? (.NET)
Posted
by SLC
on Stack Overflow
See other posts from Stack Overflow
or by SLC
Published on 2010-04-11T17:37:28Z
Indexed on
2010/04/11
17:43 UTC
Read the original article
Hit count: 285
Mathematically I suppose it's possible that even two random GUIDs generated using the built in method in the .NET framework are identical, but roughly how likely are they to clash if you generate hundreds or thousands?
If you generated one for every copy of Windows in the world, would they clash?
The reason I ask is because I have a program that creates a lot of objects, and destroys some too, and I am wondering about the likelihood of any of those objects (including the destroyed ones) having identical GUIDs.
© Stack Overflow or respective owner