UUID v4 (Universally Unique Identifier version 4) is defined by RFC 4122. Each UUID is 128 bits — represented as 32 hexadecimal digits in the format xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx. The 4 at position 13 identifies the version, and the variant bits at position 17 are set to 8, 9, a, or b. The remaining 122 bits are randomly generated using the browser's crypto.randomUUID(), which uses a cryptographically secure pseudo-random number generator (CSPRNG). The probability of two v4 UUIDs colliding is astronomically small — roughly 1 in 5.3 × 10³⁶.
UUID v4(Universally Unique Identifier version 4)는 RFC 4122 표준에 정의되어 있습니다. 각 UUID는 128비트이며 xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx 형식의 32자리 16진수로 표현됩니다. 13번째 자리의 4가 버전을 나타내고, 17번째 자리에 배리언트 비트(8, 9, a, b 중 하나)가 설정됩니다. 나머지 122비트는 무작위로 생성되며, 브라우저의 crypto.randomUUID()가 암호학적으로 안전한 난수 생성기(CSPRNG)를 사용합니다. 두 UUID가 충돌할 확률은 약 5.3 × 10³⁶ 분의 1로 사실상 불가능합니다.