RandomNumberStream

Base interface for all cryptographically secure RNGs.

Members

Aliases

read
alias read = InputStream.read
Undocumented in source.

Functions

read
size_t read(ubyte[] dst, IOMode mode)

Fills the buffer new random numbers.

Inherited Members

From InputStream

empty
bool empty [@property getter]

Returns true iff the end of the input stream has been reached.

leastSize
ulong leastSize [@property getter]

(Scheduled for deprecation) Returns the maximum number of bytes that are known to remain in this stream until the end is reached.

dataAvailableForRead
bool dataAvailableForRead [@property getter]

(Scheduled for deprecation) Queries if there is data available for immediate, non-blocking read.

peek
const(ubyte)[] peek()

Returns a temporary reference to the data that is currently buffered.

read
size_t read(ubyte[] dst, IOMode )
void read(ubyte[] dst)

Fills the preallocated array 'bytes' with data from the stream.

Meta