MCPcopy Create free account
hub / github.com/MultithreadedJSBook/code-samples / random64

Function random64

ch3-happycoin/happycoin-piscina.js:5–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4const big64arr = new BigUint64Array(1)
5function random64() {
6 crypto.randomFillSync(big64arr);
7 return big64arr[0];
8}
9
10function sumDigitsSquared(num) {
11 let total = 0n;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected