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

Function writeTimestamp

lib/internal/crypto/random.js:418–427  ·  view source on GitHub ↗
(buf, offset)

Source from the content-addressed store, hash-verified

416}
417
418function writeTimestamp(buf, offset) {
419 const now = DateNow();
420 const msb = now / (2 ** 32);
421 buf[offset] = msb >>> 8;
422 buf[offset + 1] = msb;
423 buf[offset + 2] = now >>> 24;
424 buf[offset + 3] = now >>> 16;
425 buf[offset + 4] = now >>> 8;
426 buf[offset + 5] = now;
427}
428
429function getBufferedUUIDv7() {
430 uuidData ??= secureBuffer(16 * kBatchSize);

Callers 2

getBufferedUUIDv7Function · 0.85
getUnbufferedUUIDv7Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…