MCPcopy
hub / github.com/CopilotKit/CopilotKit / mulberry32

Function mulberry32

showcase/harness/src/fleet/queue-client.test.ts:1673–1682  ·  view source on GitHub ↗
(seed: number)

Source from the content-addressed store, hash-verified

1671
1672 // Seeded deterministic PRNG so the shuffled run is reproducible (mulberry32).
1673 function mulberry32(seed: number): () => number {
1674 let a = seed >>> 0;
1675 return () => {
1676 a |= 0;
1677 a = (a + 0x6d2b79f5) | 0;
1678 let t = Math.imul(a ^ (a >>> 15), 1 | a);
1679 t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
1680 return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
1681 };
1682 }
1683
1684 const PAGE_IDS = Array.from({ length: 12 }, (_, i) => `j${i}`);
1685

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…