471,350 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Guid.NewGuid() is always returning all zeroes

I am using VS2004 and .Net 2.0. Every time Guid.NewGuid() is called,
the returned guid is all zeroes: {00000000-0000-0000-0000-000000000000}

In looking at the MSDN documentation on NewGuid(), it states:

"There is a very low probability that the value of the new Guid is all
zeroes or equal to any other Guid."

It seems I am in that "very low probability" group. Does anyone know
why?

Jan 25 '06 #1
2 6028
I am using VS2004 and .Net 2.0. Every time Guid.NewGuid() is called,
the returned guid is all zeroes: {00000000-0000-0000-0000-000000000000}


Can you post your code?
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jan 25 '06 #2
Opps, I had two constructors, duh

Jan 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Tom L | last post: by
2 posts views Thread by Jeff Lynch | last post: by
6 posts views Thread by Jim Heavey | last post: by
9 posts views Thread by Rene | last post: by
4 posts views Thread by LL | last post: by
5 posts views Thread by George | last post: by
2 posts views Thread by Gary Dunne | last post: by
1 post views Thread by Scott M. Lyon | last post: by
1 post views Thread by Scott M. Lyon | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.