RandomNumberGenerator
This class represents a random number (RNG) generator object.
Create a seeded and active RNG object for general application use Added in 1.8.0
Create a seeded and active RNG object for general application use Added in 1.11.5
Randomize a ubyte array.
ubyte* output | the ubyte array to hold the random output. |
size_t length | the length of the ubyte array output. |
Return a random vector
size_t bytes | number of bytes in the result |
Return a random ubyte
Check whether this RNG is seeded.
Clear all internally held values of this RNG.
Return the name of this object
Seed this RNG using the entropy sources it contains.
size_t bits_to_collect | is the number of bits of entropy to attempt to gather from the entropy sources |
Add entropy to this RNG.
const(ubyte)* input | a ubyte array containg the entropy to be added |
size_t length | the length of the ubyte array in |
Null/stub RNG - fails if you try to use it for anything
Wraps access to a RNG in a mutex