J
Jay Douglas
Does anybody know the odds of generating a duplicate guid?
Nicholas Paldino said:Jay,
You probably have better odds at winning the lottery. Seriously.
What is your concern?
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Jay Douglas said:Does anybody know the odds of generating a duplicate guid?
Jay Douglas said:Just wondering ... just candy for the mind.
I've heard someone say the odds are about the same as winning the Texas
lottery 32 times.
I was just hoping a formula or a number.
I slept though statistics, so I can't come up with a good answer.
--
Jay Douglas
http://jaydouglas.com
Nicholas Paldino said:Jay,
You probably have better odds at winning the lottery. Seriously.
What is your concern?
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Jay Douglas said:Does anybody know the odds of generating a duplicate guid?
Which would be the same as 1 million new GUIDs per second for the next 5 years,Nicholas said:Jay,
I remember reading something that said you had to generate 1000 new
GUIDs per second for the next 5000 years in order to come across a duplicate
(or something like that).
I wouldn't worry =)
Better than the odds of an incrementing numeric counter generating aJay Douglas said:Does anybody know the odds of generating a duplicate guid?
Nicholas Paldino said:Let's make this simpler. It's a 128 bit number, which means that there
are 2^128 possibilities. That turns out to be:
3.4028236692093846346337460743177e+38
That's a large number.
Jay Douglas said:I thought that MS stopped using the MAC address to create the guids since
the cheaper NIC cards were producing duplicate MAC addresses at an alarming
rate.
Willy said:That's right, microsoft doesn't use the DCE algorithm on NT based systems
(since NT4 SP4), but the reason was a bit of "privacy paranoia", people
didn't like to give away their MAC addresses through a GUID.
Willy.
Mark Rance said:Is the algorithm MS uses to create a GUID published somewhere?
-Mark