HashDRBGStream.predictionResistance

Set to Yes.PredictionResistance for additional protection against prediction attacks by forcing a reseed with fresh entropy for each call to read(). Reset back to No.PredictionResistance afterwords for faster, but still cryptographically-secure, operation when you're done with extra-elevated security needs.

Default is No.PredictionResistance.

This setting is for changing read()'s default bahavior. Individual calls to read() can manually override this per call.

struct HashDRBGStream(TSHA = SHA512, string custom = "D Crypto RNG", EntropyStream = SystemEntropyStream)
Flag!"PredictionResistance" predictionResistance;

Meta