Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
const
big64arr =
new
BigUint64Array(1)
5
function
random64() {
6
crypto.randomFillSync(big64arr);
7
return
big64arr[0];
8
}
9
10
function
sumDigitsSquared(num) {
11
let
total = 0n;
Callers
1
happycoin-piscina.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected