public override void NextBytes(byte[] bytes)
 {
     lock (this)
     {
         if (mDrbg.Generate(bytes, mPredictionResistant) < 0)
         {
             mDrbg.Reseed();
             mDrbg.Generate(bytes, mPredictionResistant);
         }
     }
 }
Example #2
0
 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);
         }
     }
 }