Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ setRandom
Function
setRandom
packages/app/src/utils/uuid.test.ts:22–27 ·
view source on GitHub ↗
(value: () => number)
Source
from the content-addressed store, hash-verified
20
}
21
22
const
setRandom = (value: () => number) => {
23
Object.defineProperty(Math,
"random"
, {
24
configurable: true,
25
value,
26
})
27
}
28
29
afterEach(() => {
30
if
(cryptoDescriptor) {
Callers
1
uuid.test.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected