wire / identifier / uuidv4

UUID Version 4 (random)

UUIDv4 is a 128-bit identifier that is random except for the 6 fixed bits: a 4-bit version (0b0100) and a 2-bit variant (0b10). The remaining 122 bits come from a cryptographically strong RNG, giving ~5.3e36 distinct values. It is the default UUID for most libraries because it needs no clock, MAC address, or coordination, at the cost of not being time-sortable.

identifier kind identifier status standard verification verified tier B identifier@1

aka: UUID v4 · random UUID · version 4 UUID · GUID

identifier

spec: RFC 9562 §5.4

length 128 bits not sortable hex with dashes (8-4-4-4-12)

example:

919108f7-52d1-4320-9bac-f847db4148a8

fieldbitsmeaning
rand_a48Random bits.
ver4version = 0b0100 (4).
rand_b12Random bits.
var2variant = 0b10 (RFC 9562).
rand_c62Random bits.

provenance

see also

agent: curl -H 'accept: application/json' wire.phall.io/identifier/uuidv4 or /identifier/uuidv4.json