Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/mailvelope/mailvelope
/ getSecureRandomUint
Function
getSecureRandomUint
src/modules/crypto.js:68–73 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
66
}
67
68
function
getSecureRandomUint() {
69
const
buf =
new
Uint8Array(4);
70
const
dv =
new
DataView(buf.buffer);
71
crypto.getRandomValues(buf);
72
return
dv.getUint32(0);
73
}
Callers
1
getSecureRandom
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected