MCPcopy 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
22const setRandom = (value: () => number) => {
23 Object.defineProperty(Math, "random", {
24 configurable: true,
25 value,
26 })
27}
28
29afterEach(() => {
30 if (cryptoDescriptor) {

Callers 1

uuid.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected