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