Function SystemEntropyStream.read
Fills the buffer with entropy from the system-specific entropy generator.
Automatically opens SystemEntropyStream
if it's closed.
If predictionResistance
is Yes.PredictionResistance, then this will read
from a secondary source (if available), such as /dev/random instead of
/dev/urandom, which may block for a noticable amount of time to ensure
a minimum amount of estimated entropy is available. If no secondary
source is available, then predictionResistance
is ignored.
Prototype
void read( ubyte[] buf, Flag!"PredictionResistance" predictionResistance );
Optional Params
predictionResistance
- Default value is 'No.PredictionResistance'