Archived

This topic is now archived and is closed to further replies.

Barn Door

GUID duplicate

Recommended Posts

Anybody know of a single case where two independently generated GUIDs were found to be the same? How long will it be until these numbers run out?

Share this post


Link to post
Share on other sites
you can use the Generate-GUID tool to generate unique guids.

Now, yes there IS a posibility that one already exists, BUT, you can generate, lets say 20 of them, and test each to see if they already exist, if not, they are yours

Do this at runtime, at teh beginning of your program, and you should be fine.


www.cppnow.com

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If you let your computer run guidgen 100%, the Earth will be gone long before you get duplicate guids. Assuming you''re using the provided functions for GUID generation.

Spend your time on important things to ship your product and don''t worry about duplicate guids! (well... unless you''re doing rocket science, pacemakers or the break system to my car)

Share this post


Link to post
Share on other sites