Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Uniqueness of a 'Guid'

Uniqueness of a 'Guid'

Scheduled Pinned Locked Moved The Lounge
csharpasp-netcom
11 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bbirajdar
    wrote on last edited by
    #1

    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[^]

    K M B 3 Replies Last reply
    0
    • B bbirajdar

      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[^]

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      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[^]

      D OriginalGriffO L 3 Replies Last reply
      0
      • B bbirajdar

        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[^]

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        I can add this (and the 3 links at the bottom) GUIDs are designed to be unique, not random [^]

        Watched code never compiles.

        1 Reply Last reply
        0
        • K Keith Barrow

          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[^]

          D Offline
          D Offline
          DaveAuld
          wrote on last edited by
          #4

          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

          K 1 Reply Last reply
          0
          • K Keith Barrow

            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[^]

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #5

            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

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            H K 2 Replies Last reply
            0
            • OriginalGriffO OriginalGriff

              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

              H Offline
              H Offline
              hairy_hats
              wrote on last edited by
              #6

              All we have to do is stop funding the egregious contest and we'd never make it to the final again.

              1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                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

                K Offline
                K Offline
                Keith Barrow
                wrote on last edited by
                #7

                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[^]

                OriginalGriffO 1 Reply Last reply
                0
                • K Keith Barrow

                  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[^]

                  OriginalGriffO Offline
                  OriginalGriffO Offline
                  OriginalGriff
                  wrote on last edited by
                  #8

                  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 have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                  1 Reply Last reply
                  0
                  • B bbirajdar

                    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[^]

                    B Offline
                    B Offline
                    BobJanova
                    wrote on last edited by
                    #9

                    Hehe, some funny stuff in there.

                    1 Reply Last reply
                    0
                    • D DaveAuld

                      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

                      K Offline
                      K Offline
                      Keith Barrow
                      wrote on last edited by
                      #10

                      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[^]

                      1 Reply Last reply
                      0
                      • K Keith Barrow

                        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[^]

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #11

                        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:

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups