예제 #1
0
 private void CheckSecureRandom(CryptoCodec codec, int len)
 {
     byte[] rand  = new byte[len];
     byte[] rand1 = new byte[len];
     codec.GenerateSecureRandom(rand);
     codec.GenerateSecureRandom(rand1);
     Assert.Equal(len, rand.Length);
     Assert.Equal(len, rand1.Length);
     NUnit.Framework.Assert.IsFalse(Arrays.Equals(rand, rand1));
 }