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

Function getUnbufferedUUIDv7

lib/internal/crypto/random.js:441–448  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

439}
440
441function getUnbufferedUUIDv7() {
442 uuidNotBuffered ??= secureBuffer(16);
443 if (uuidNotBuffered === undefined)
444 throw new ERR_OPERATION_FAILED('Out of memory');
445 randomFillSync(uuidNotBuffered, 6);
446 writeTimestamp(uuidNotBuffered, 0);
447 return serializeUUID(uuidNotBuffered, 0x70, 0x80);
448}
449
450function randomUUIDv7(options) {
451 if (options !== undefined)

Callers 1

randomUUIDv7Function · 0.85

Calls 3

randomFillSyncFunction · 0.85
writeTimestampFunction · 0.85
serializeUUIDFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…