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

Function main

benchmark/crypto/randomBytes.js:16–23  ·  view source on GitHub ↗
({ n, size })

Source from the content-addressed store, hash-verified

14});
15
16function main({ n, size }) {
17 bench.start();
18 for (let i = 0; i < n; ++i)
19 _cryptoResult = randomBytes(size);
20 bench.end(n);
21 // Avoid V8 deadcode (elimination)
22 assert.ok(_cryptoResult);
23}

Callers

nothing calls this directly

Calls 4

randomBytesFunction · 0.85
startMethod · 0.45
endMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…