wire / identifier / uuidv4
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.
aka: UUID v4 · random UUID · version 4 UUID · GUID
spec: RFC 9562 §5.4
example:
919108f7-52d1-4320-9bac-f847db4148a8
| field | bits | meaning |
|---|---|---|
| rand_a | 48 | Random bits. |
| ver | 4 | version = 0b0100 (4). |
| rand_b | 12 | Random bits. |
| var | 2 | variant = 0b10 (RFC 9562). |
| rand_c | 62 | Random bits. |
agent: curl -H 'accept: application/json' wire.phall.io/identifier/uuidv4
or /identifier/uuidv4.json