()
| 386 | } |
| 387 | |
| 388 | function 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 | |
| 398 | function getUnbufferedUUID() { |
| 399 | uuidNotBuffered ??= secureBuffer(16); |
no test coverage detected
searching dependent graphs…