- Timestamp:
- 3/13/2012 2:31:21 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/RNGCrypto.cs
r2458 r2459 34 34 { 35 35 [Guid("6BF35B8E-F37F-476e-B6B2-9994A92C3B0C")] 36 publicclass RngCrypto : PrngBase36 class RngCrypto : PrngBase 37 37 { 38 public string Name38 public override string Name 39 39 { 40 40 get { return S._("RNGCryptoServiceProvider"); } 41 41 } 42 42 43 public Guid Guid43 public override Guid Guid 44 44 { 45 45 get { return GetType().GUID; } 46 46 } 47 47 48 public void NextBytes(byte[] buffer)48 public override void NextBytes(byte[] buffer) 49 49 { 50 50 rand.GetBytes(buffer); 51 51 } 52 52 53 protected void Reseed(byte[] seed)53 protected override void Reseed(byte[] seed) 54 54 { 55 55 //No-op. RNGCryptoServiceProviders can't be reseeded.
Note: See TracChangeset
for help on using the changeset viewer.
