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

Function getBufferedUUID

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

Source from the content-addressed store, hash-verified

386}
387
388function getBufferedUUID() {
389 uuidData ??= secureBuffer(16 * kBatchSize);
390 if (uuidData === undefined)
391 throw new ERR_OPERATION_FAILED('Out of memory');
392
393 if (uuidBatch === 0) randomFillSync(uuidData);
394 uuidBatch = (uuidBatch + 1) % kBatchSize;
395 return serializeUUID(uuidData, 0x40, 0x80, uuidBatch * 16);
396}
397
398function getUnbufferedUUID() {
399 uuidNotBuffered ??= secureBuffer(16);

Callers 1

randomUUIDFunction · 0.85

Calls 2

randomFillSyncFunction · 0.85
serializeUUIDFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…