def next
import bend-collections-laws-crypto@1.0.0.0/src/crypto/random.bend as Randomimport 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)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/random:map_outputs
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/random/proof:gen_outputs
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/random/proof:wrap_map
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/random:Random.stream
- bend-collections-laws-crypto@1.0.0.0/src/crypto/random:shuffle
- …