public override void NextBytes(byte[] bytes) { lock (this) { if (mDrbg.Generate(bytes, mPredictionResistant) < 0) { mDrbg.Reseed(); mDrbg.Generate(bytes, mPredictionResistant); } } }
public override void NextBytes(byte[] bytes) { lock (this) { // check if a reseed is required... if (mDrbg.Generate(bytes, mPredictionResistant) < 0) { mDrbg.Reseed(); mDrbg.Generate(bytes, mPredictionResistant); } } }