MCPcopy Index your code
hub / github.com/nodejs/node / randomUUID

Function randomUUID

lib/internal/crypto/random.js:406–416  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

404}
405
406function randomUUID(options) {
407 if (options !== undefined)
408 validateObject(options, 'options');
409 const {
410 disableEntropyCache = false,
411 } = options || kEmptyObject;
412
413 validateBoolean(disableEntropyCache, 'options.disableEntropyCache');
414
415 return disableEntropyCache ? getUnbufferedUUID() : getBufferedUUID();
416}
417
418function writeTimestamp(buf, offset) {
419 const now = DateNow();

Callers 1

mainFunction · 0.50

Calls 2

getUnbufferedUUIDFunction · 0.85
getBufferedUUIDFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…