def from_state

bend-kit-random@0.1.0.1 · random.bend:33

import bend-kit-random@0.1.0.1/random.bend as Random
import Base

33# The state (a, b, c, d) as is, to replay a reference stream. All zero gives seed(0).
34def from_state(+a: U32, +b: U32, +c: U32, +d: U32) -> Rng:
35  from_state.if(U32.is_zero((a .|. b .|. c .|. d : U32)), a, b, c, d)

Uses (5)

Used by (1)