MCPcopy Create free account
hub / github.com/Effect-TS/effect / reset

Function reset

packages/effect/src/Random.ts:328–337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326 }
327
328 function reset() {
329 accumulator = 0
330 lastResult = 0
331 counter = 0
332 for (let i = 0; i < 256; ++i) {
333 memory[i] = 0
334 result[i] = 0
335 }
336 generation = 0
337 }
338
339 function seed(userSeed: string | number): void {
340 // The golden ratio ( 2654435769 )

Callers 1

seedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected