def last

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

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

53# the last group: 28 words of output, then the next key
54def last(+g: List<&2, W.U64>) -> ChaCha8:
55  C{rekey(List.drop(&2, W.U64, g, 28n)), G0{}, List.take(&2, W.U64, g, 28n)}

Uses (7)

Used by (2)