MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / mulberry32

Function mulberry32

scripts/rubi/benchmark.ts:98–107  ·  view source on GitHub ↗
(seed: number)

Source from the content-addressed store, hash-verified

96
97// Deterministic PRNG (mulberry32), same role as scripts/fungrim/sample.ts.
98function mulberry32(seed: number): () => number {
99 let a = seed >>> 0;
100 return () => {
101 a |= 0;
102 a = (a + 0x6d2b79f5) | 0;
103 let t = Math.imul(a ^ (a >>> 15), 1 | a);
104 t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
105 return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
106 };
107}
108
109function collectSymbols(expr: Json, out: Set<string>): void {
110 if (typeof expr === 'string') {

Callers 2

runProblemFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected