UUID.js: The RFC-compliant UUID generator for JavaScript.
_getIntAligner
radix
Returns a function that converts an integer to a zero-filled string.
radix
Int
_getRandomInt
x
Returns an unsigned x-bit random integer.
x
Int
A positive integer ranging from 0 to 53, inclusive.
An unsigned x-bit random integer (0 <= f(x) < 2^x).
_getTimeFieldValues
time
Get the time from field values
time
Date | Int
ECMAScript Date Object or milliseconds from 1970-01-01.
_init
[timeLow=0]
[timeMid=0]
[timeHiAndVersion=0]
[clockSeqHiAndReserved=0]
[clockSeqLow=0]
[node=0]
Initializes {@link UUID} object.
[timeLow=0]
Uint32
optional
time_low field (octet 0-3).
[timeMid=0]
Uint16
optional
time_mid field (octet 4-5).
[timeHiAndVersion=0]
Uint16
optional
time_hi_and_version field (octet 6-7).
[clockSeqHiAndReserved=0]
Uint8
optional
clock_seq_hi_and_reserved field (octet 8).
[clockSeqLow=0]
Uint8
optional
clock_seq_low field (octet 9).
[node=0]
Uint48
optional
node field (octet 10-15).
this.
equals
uuid
Tests if two {@link UUID} objects are equal.
uuid
UUID
True if two {@link UUID} objects are equal.
generate
The simplest function to get an UUID string.
A version 4 UUID string.
genV1
Generates a version 1 {@link UUID}.
A version 1 {@link UUID} object.
getV4
Generates a version 4 {@link UUID}.
A version 4 {@link UUID} object.
makeBackwardCompatible
Reinstalls {@link UUID.generate} method to emulate the interface of UUID.js version 2.x.
parse
strId
Converts hexadecimal UUID string to an {@link UUID} object.
strId
String
UUID hexadecimal string representation ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
{@link UUID} object or null.
_tsRadio
Probability to advance the timestamp fraction: the ratio of tick movements to sequence increments.