We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a9d9d3 commit 5cce789Copy full SHA for 5cce789
packages/core/src/uuid.ts
@@ -37,13 +37,11 @@ export function stringToUuid(target: string | number): UUID {
37
hashBuffer[i / 2] = parseInt(hash.slice(i, i + 2), 16);
38
}
39
40
- hashBuffer[6] = (hashBuffer[6] & 0x0f) | 0x50;
41
-
42
return (_uint8ArrayToHex(hashBuffer.slice(0, 4)) +
43
"-" +
44
_uint8ArrayToHex(hashBuffer.slice(4, 6)) +
45
46
- _uint8ToHex(hashBuffer[6]) +
+ _uint8ToHex(hashBuffer[6] & 0x0f) +
47
_uint8ToHex(hashBuffer[7]) +
48
49
_uint8ToHex((hashBuffer[8] & 0x3f) | 0x80) +
0 commit comments