def new

bend-collections-laws-crypto@1.0.0.0 · src/math/random/chacha8.bend:121

import bend-collections-laws-crypto@1.0.0.0/src/math/random/chacha8.bend as Chacha8
import Base

121# Go's NewChaCha8(seed): the seed is 32 bytes, each below 256
122def new(+seed: List<&2, U32>) -> Maybe<&2, ChaCha8>:
123  seed_ok(seed, all_bytes(seed))

Uses (6)

Used by (3)