nl_tokens: Creates a new instance of Uuid based on the parameters provided according to rfc4122 . If any of the arguments is not provided it will be randomly generated except for the date that will use the current date . <p > Note that when nodeId and / or clockId portions are not provided the constructor will generate them using <code > crypto . randomBytes () < / code > . As it s possible that <code > crypto . randomBytes () < / code > might block it s recommended that you use the callback - based version of the static methods <code > fromDate () < / code > or <code > now () < / code > in that case . < / p >
pl_tokens: function TimeUuid ( value , ticks , nodeId , clockId ) { let buffer ; if ( value instanceof Buffer ) { if ( value . length !== 16 ) { throw new Error ( 'Buffer for v1 uuid not valid' ) ; } buffer = value ; } else { buffer = generateBuffer ( value , ticks , nodeId , clockId ) ; } Uuid . call ( this , <mask> ) ; }