Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
function
cryptoRandom() {
17
return
crypto.getRandomValues(
new
Uint32Array(1))[0] / (0xffffffff + 1)
18
}
Callers
1
getBucket
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected