Visual RFC.
ALL RFCs / RFC 9562
Read the RFC ↗
RFC 9562 / MECHANISM GUIDE

Random UUID version 4

02

UUIDv4 fills the available layout with random data around fixed version and variant bits.

RFC 9562 · § 5.4EXAMPLE
3 / 3
03
Issue the identifier

Keep the identifier distinct from an authentication secret.

Random UUID version 4UUIDv4 fills the available layout with random data around fixed version and variant bits.Random UUID version 4random inputfresh random bitsversion / variant4 / standardremaining random bits122Probabilistic uniqueness is not authentication

Key idea: The version and variant leave 122 random bits.

Terms

Look up a term in the glossary ↗

Rules & examples
  • The version and variant leave 122 random bits.
  • Use a suitable random source; CSPRNG guidance appears in §6.9.
  • Collisions remain probabilistic rather than mathematically impossible.

Examples are illustrative. Consult the linked RFC and its errata for implementation details.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

First, agree how to read the message.

An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 9562

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗