RandomNumberStream.read

Fills the buffer new random numbers.

  1. size_t read(ubyte[] dst, IOMode mode)
    interface RandomNumberStream
    override @safe
    size_t
    read
    (
    scope ubyte[] dst
    ,
    IOMode mode
    )
  2. alias read = InputStream.read

Parameters

dst ubyte[]

The buffer that will be filled with random numbers. It will contain buffer.length random ubytes. Supportes both heap-based and stack-based arrays.

mode IOMode

The desired waiting mode for IO operations.

Throws

CryptoException on error.

Meta