Uniqueness of a 'Guid'
-
I recently came across a very interesting debate over the uniqueness of 'Guid'. I am posting these links for the CP readers' reference.. It will be a little refreshment, laughter and can add a few bytes to the readers' knowledge. simple-proof-that-guid-is-not-unique[^] last-guid-used-up-new-scottguid-unique-id-to-replace-it.aspx[^]
-
I recently came across a very interesting debate over the uniqueness of 'Guid'. I am posting these links for the CP readers' reference.. It will be a little refreshment, laughter and can add a few bytes to the readers' knowledge. simple-proof-that-guid-is-not-unique[^] last-guid-used-up-new-scottguid-unique-id-to-replace-it.aspx[^]
Curious, I was just looking at question where the user wanted a shorter Guid (thus probably negating their usefulness). I don't understand why people don't get it. I had a pretty long argument with someone about using GUIDs as an artificial key on a database table as "GUIDs aren't unique" which is true, in the same way that the UK could win Eurovision, or England could beat Germany on Penalties in the world cup.
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^] -
I recently came across a very interesting debate over the uniqueness of 'Guid'. I am posting these links for the CP readers' reference.. It will be a little refreshment, laughter and can add a few bytes to the readers' knowledge. simple-proof-that-guid-is-not-unique[^] last-guid-used-up-new-scottguid-unique-id-to-replace-it.aspx[^]
I can add this (and the 3 links at the bottom) GUIDs are designed to be unique, not random [^]
Watched code never compiles.
-
Curious, I was just looking at question where the user wanted a shorter Guid (thus probably negating their usefulness). I don't understand why people don't get it. I had a pretty long argument with someone about using GUIDs as an artificial key on a database table as "GUIDs aren't unique" which is true, in the same way that the UK could win Eurovision, or England could beat Germany on Penalties in the world cup.
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^]I think the poster of the question was just looking for a way to generate random passwords, and thought of using GUIDs as a way to do this. It was the solution poster stating that GUIDs are unique which raised the eyebrows, and I had to add a comment that even the link provided has a link to the GUID page which states "A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required. Such an identifier has a very low probability of being duplicated." Maybe calling it a G Unique ID was a bad idea in the original specification........ :rolleyes:
Dave Find Me On: Web|Facebook|Twitter|LinkedIn
Folding Stats: Team CodeProject
-
Curious, I was just looking at question where the user wanted a shorter Guid (thus probably negating their usefulness). I don't understand why people don't get it. I had a pretty long argument with someone about using GUIDs as an artificial key on a database table as "GUIDs aren't unique" which is true, in the same way that the UK could win Eurovision, or England could beat Germany on Penalties in the world cup.
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^]Keith Barrow wrote:
the UK could win Eurovision
Oh god, I hope not. I think one of the reasons we try so very, very hard to loose as badly as possible is that we don't want to have to host the next one...
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
-
Keith Barrow wrote:
the UK could win Eurovision
Oh god, I hope not. I think one of the reasons we try so very, very hard to loose as badly as possible is that we don't want to have to host the next one...
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
All we have to do is stop funding the egregious contest and we'd never make it to the final again.
-
Keith Barrow wrote:
the UK could win Eurovision
Oh god, I hope not. I think one of the reasons we try so very, very hard to loose as badly as possible is that we don't want to have to host the next one...
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
Engelhump Slaptyback was the choice of a nation that really didn't want the cost of hosting it.
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^] -
Engelhump Slaptyback was the choice of a nation that really didn't want the cost of hosting it.
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^]I figured that for Jedwood as well...
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
-
I recently came across a very interesting debate over the uniqueness of 'Guid'. I am posting these links for the CP readers' reference.. It will be a little refreshment, laughter and can add a few bytes to the readers' knowledge. simple-proof-that-guid-is-not-unique[^] last-guid-used-up-new-scottguid-unique-id-to-replace-it.aspx[^]
-
I think the poster of the question was just looking for a way to generate random passwords, and thought of using GUIDs as a way to do this. It was the solution poster stating that GUIDs are unique which raised the eyebrows, and I had to add a comment that even the link provided has a link to the GUID page which states "A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required. Such an identifier has a very low probability of being duplicated." Maybe calling it a G Unique ID was a bad idea in the original specification........ :rolleyes:
Dave Find Me On: Web|Facebook|Twitter|LinkedIn
Folding Stats: Team CodeProject
That's what I assumed, but he could want to send a guid in a link to the user for a password reminder. I hadn't seen the response you mention, I'm putting my 5 here instead. The "G" stands for Globally, I think this is meant to imply that it isn't truly unique (they'd have called it a UID), but unique on a "global scale" i.e. any number generated on Earth is probably going to be. Even then it still needs a "Probably" or "Quasi" before the UID bit, pity, because QUID is a good acronym :laugh:
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^] -
Curious, I was just looking at question where the user wanted a shorter Guid (thus probably negating their usefulness). I don't understand why people don't get it. I had a pretty long argument with someone about using GUIDs as an artificial key on a database table as "GUIDs aren't unique" which is true, in the same way that the UK could win Eurovision, or England could beat Germany on Penalties in the world cup.
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^]Keith Barrow wrote:
I was just looking at question where the user wanted a shorter Guid (thus probably negating their usefulness).
It doesn't negate it's usefullness; it's merely a random number. Make the number shorter, and you have a higher chance that you'll end up with a duplicate. Make the number longer (two guids concatenated) and the chance for a duplicate gets smaller. It's just a very, very big int.
Bastard Programmer from Hell :suss: