MCPcopy 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
68function 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

getSecureRandomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected