UUID.js: The RFC-compliant UUID generator for JavaScript.
_getIntAlignerradix
Returns a function that converts an integer to a zero-filled string.
radix
Int
_getRandomIntx
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).
_getTimeFieldValuestime
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.
equalsuuid
Tests if two {@link UUID} objects are equal.
uuid
UUID
True if two {@link UUID} objects are equal.
generateThe simplest function to get an UUID string.
A version 4 UUID string.
genV1Generates a version 1 {@link UUID}.
A version 1 {@link UUID} object.
getV4Generates a version 4 {@link UUID}.
A version 4 {@link UUID} object.
makeBackwardCompatibleReinstalls {@link UUID.generate} method to emulate the interface of UUID.js version 2.x.
parsestrId
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.
_tsRadioProbability to advance the timestamp fraction: the ratio of tick movements to sequence increments.