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

Function getHexBytes

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

Source from the content-addressed store, hash-verified

350
351let hexBytesCache;
352function getHexBytes() {
353 if (hexBytesCache === undefined) {
354 hexBytesCache = new Array(256);
355 for (let i = 0; i < hexBytesCache.length; i++) {
356 const hex = NumberPrototypeToString(i, 16);
357 hexBytesCache[i] = StringPrototypePadStart(hex, 2, '0');
358 }
359 }
360 return hexBytesCache;
361}
362
363function serializeUUID(buf, version, variant, offset = 0) {
364 const kHexBytes = getHexBytes();

Callers 1

serializeUUIDFunction · 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…