HashMixerRNG

Hash-based cryptographically secure random number mixer.

This RNG uses a hash function to mix a specific amount of random bytes from the input RNG. Use only cryptographically secure hash functions like SHA-512, Whirlpool or SHA-256, but not MD5.

Constructors

this
this()

Creates new hash-based mixer random generator.

Members

Aliases

read
alias read = RandomNumberStream.read
Undocumented in source.

Functions

peek
const(ubyte)[] peek()
Undocumented in source. Be warned that the author may not have intended to support it.
read
size_t read(ubyte[] buffer, IOMode mode)
Undocumented in source.

Properties

dataAvailableForRead
bool dataAvailableForRead [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
leastSize
ulong leastSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

rng
SystemRNG rng;
Undocumented in source.

Inherited Members

From RandomNumberStream

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

Fills the buffer new random numbers.

read
alias read = InputStream.read
Undocumented in source.

Meta