MCPcopy Create free account
hub / github.com/vercel/examples / cryptoRandom

Function cryptoRandom

edge-middleware/ab-testing-simple/lib/ab-testing.ts:16–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16function cryptoRandom() {
17 return crypto.getRandomValues(new Uint32Array(1))[0] / (0xffffffff + 1)
18}

Callers 1

getBucketFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected