def from_state
import bend-kit-random@0.1.0.1/random.bend as Randomimport 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)