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.

More...
struct SystemEntropyStream(string pathToRandom = defaultPathToRandom, string pathToStrongRandom = defaultPathToStrongRandom)
static
void
read
(
ubyte[] buf
,
Flag!"PredictionResistance" predictionResistance = No.PredictionResistance
)

Detailed Description

Optional Params

predictionResistance - Default value is 'No.PredictionResistance'

Meta