(seed: number)
| 96 | |
| 97 | // Deterministic PRNG (mulberry32), same role as scripts/fungrim/sample.ts. |
| 98 | function 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 | |
| 109 | function collectSymbols(expr: Json, out: Set<string>): void { |
| 110 | if (typeof expr === 'string') { |
no outgoing calls
no test coverage detected