• Sugar for secureRandom(byteCount, {type: 'Buffer'}).

    Type Parameters

    • T extends TypeName

    Parameters

    • byteCount: number

      is the number of bytes to return.

    • options: {
          type: T;
      }

      options to pass. Only valid value at this time type. type can be either Array, Uint8Array, or Buffer. Buffer is only valid in Node.js or Browserify environments - it will throw an error otherwise.

      • type: T

    Returns ObjectType<T>

Generated using TypeDoc