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

Function getInitialSeed

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

Source from the content-addressed store, hash-verified

320 seed(internalSeed)
321
322 function getInitialSeed() {
323 const uint32a = new Uint32Array(2)
324 crypto.getRandomValues(uint32a)
325 return uint32a[0] + uint32a[1]
326 }
327
328 function reset() {
329 accumulator = 0

Callers 1

ISAAC_CSPRNGFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected