@blockchaincommons/rand - v1.0.0-beta.3
    Preparing search index...

    Function randomBytes

    • size random bytes from options.rng (default: the secure generator).

      Parameters

      Returns Uint8Array<ArrayBuffer>

      InvalidArgument when size is not a non-negative safe integer; InvalidGenerator when the generator has no callable fillBytes.