def boundary.new

bend-kit-multipart@0.3.0.0 · multipart.bend:199

import bend-kit-multipart@0.3.0.0/multipart.bend as Multipart
import Base
import bend-kit-crypto@0.2.2.1/crypto.bend as Crypto

199# "bend-kit-" and 128 bits from the OS secure random source, as hex: 41 bchars.
200def boundary.new() -> IO(Result<&1, &1, U32 & String, String>):
201  do IO<Result<&1, &1, U32 & String, String>>:
202    r : Result<&1, &1, U32 & String, U32 & Array<U32>> <- Crypto.random.words(16)
203    return boundary.words(r)

Uses (10)

Used by (1)