Skip to content

Instantly share code, notes, and snippets.

@stormwild
Last active April 14, 2024 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stormwild/2fb34a0c315489dc7f539718f6524a88 to your computer and use it in GitHub Desktop.
Save stormwild/2fb34a0c315489dc7f539718f6524a88 to your computer and use it in GitHub Desktop.
UUID

UUID

ULIDs and Primary Keys | Dave Allie

UUIDv4

When people say UUID they're almost always referring to UUIDv4. It's the most prevalent and widely supported UUID standard, even the example UUID given above is a UUIDv4. As UUIDv4 is based solely on randomness, it is extremely portable and can be used with very little prior knowledge about the state of the system.

UUIDv4 are composed of 122 bits of randomness, and 6 bits of version/variant identification.

RFC 4122 - A Universally Unique IDentifier (UUID) URN Namespace

Construction Quality Management Software - Visibuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment