def next
import bend-collections@1.0.0.0/src/crypto/random.bend as Randomimport Base
import bend-collections@1.0.0.0/src/math/u64.bend as W
import bend-collections@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))