def next

bend-collections-laws-crypto@1.0.0.0 · src/crypto/random.bend:84

import bend-collections-laws-crypto@1.0.0.0/src/crypto/random.bend as Random
import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W
import bend-collections-laws-crypto@1.0.0.0/src/math/random/chacha8.bend as C8

84# the Source step: the next 64-bit output (pending bytes are left for bytes)
85def next(g: Gen) -> W.U64 & Gen:
86  match g:
87    case G{c, +p}:
88      keep_pending(p, C8.next(c))

Uses (5)

Used by (10)