What is a UUID?
Asked Answered
T

8

106

Well, what is one?

Tyr answered 15/11, 2008 at 19:43 Comment(5)
You should also note that a GUID is the same thing.Proficiency
Well, a Microsoft GUID is the same thing.Mcwherter
@Dave that link was enough to answer this question.Sather
@Dave online UUID generator links seems broken.Ikon
Online uuid generator: uuidgenerator.netYahwistic
Z
130

It's an identification number that will uniquely identify something. The idea being that id number will be universally unique. Thus, no two things should have the same uuid. In fact, if you were to generate 10 trillion uuids, there would be something along the lines of a .00000006 chance of two uuids being the same.

Zampino answered 15/11, 2008 at 20:0 Comment(2)
"So you're telling me there's a chance!"Logan
Probability of a collision will never be 0Wester
R
75

Standardized identifiers

UUIDs are defined in RFC 4122. They're Universally Unique IDentifiers, that can be generated without the use of a centralized authority. There are four major types of UUIDs which are used in slightly different scenarios. All UUIDs are 128 bits in length, but are commonly represented as 32 hexadecimal characters separated by four hyphens.

Version 1 UUIDs, the most common, combine a MAC address and a timestamp to produce sufficient uniqueness. In the event of multiple UUIDs being generated fast enough that the timestamp doesn't increment before the next generation, the timestamp is manually incremented by 1. If no MAC address is available, or if its presence would be undesirable for privacy reasons, 6 random bytes sourced from a cryptographically secure random number generator may be used for the node ID instead.

Version 3 and Version 5 UUIDs, the least common, use the MD5 and SHA1 hash functions respectively, plus a namespace, plus an already unique data value to produce a unique ID. This can be used to generate a UUID from a URL for example.

Version 4 UUIDs, are simply 128 bits of random data, with some bit-twiddling to identify the UUID version and variant.

UUID collisions are extremely unlikely to happen, especially not in a single application space.

Rrhoea answered 24/4, 2009 at 17:17 Comment(0)
M
33

UUID stands for Universally Unique IDentifier. It's a 128-bit value used for a unique identification in software development. UUID is the same as GUID (Microsoft) and is part of the Distributed Computing Environment (DCE), standardized by the Open Software Foundation (OSF).

As mentioned, they are intended to have a high likelihood of uniqueness over space and time and are computationally difficult to guess. It's generation is based on the current timestamp and the unique property of the workstation that generated the UUID.

enter image description here Image from https://segment.com/blog/a-brief-history-of-the-uuid/

Mudlark answered 5/11, 2018 at 12:18 Comment(0)
M
12

It's a very long string of bits that is supposed to be unique now and forever, i.e. no possible clash with any other UUID produced by you or anybody else in the world .

The way it works is simply using current timestamp, and an internet related unique property of the computer that generated it (like the IP address, which ought to be unique at the moment you're connected to the internet; or the MAC address, which is more low level, a hard-wired ID for your network card) is part of the bit string.

Originally every network card in the world has its own unique MAC address, but in later generations, you can change the MAC address through software, so it's not as much reliable as a unique ID anymore.

Mercia answered 15/11, 2008 at 20:37 Comment(0)
M
2

It's a Universally Unique Identifier

Macdonell answered 15/11, 2008 at 19:46 Comment(0)
A
1

A UUID is a 128-bit number that is used to uniquely identify some entity. Depending on the specific mechanisms used, a UUID is guaranteed to be different or is, at least, extremely likely to be different from any other UUID generated. The UUID relies upon a combination of components to ensure uniqueness. A UUID contains a reference to the network address of the host that generated the UUID, a timestamp and a randomly generated component. Because the network address identifies a unique computer, and the timestamp is unique for each UUID generated from a particular host, those two components should sufficiently ensure uniqueness.

Abbeyabbi answered 20/8, 2018 at 12:21 Comment(0)
U
1

I just want to add that it is better to use usUUID (Static windows identifiers). For example if a computer user that relies, on a third party software like a screen reader for blind or low vision users, the other software (in this case the screen reder) will play better with unique identifiers! After all how happy will you be if someone moves your car after you know the place you parked it at!!!

Ursulina answered 8/2, 2019 at 13:45 Comment(0)
S
1

A universally unique identifier (UUID) is a 128-bit number used to identify information in computer systems. The term globally unique identifier (GUID) is also used, typically in software created by Microsoft. When generated according to the standard methods, UUIDs are for practical purposes unique. Their uniqueness does not depend on a central registration authority or coordination between the parties generating them, unlike most other numbering schemes. While the probability that a UUID will be duplicate.

Sidewalk answered 3/1, 2020 at 7:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.