RandomNumberGenerator Class
NuGet: GHIElectronics.TinyCLR.Cryptography
Assembly: System.Security.Cryptography
Namespace: System.Security.Cryptography
Cryptographically secure RNG. Create via Create(); do not seed manually.
public abstract class RandomNumberGenerator : IDisposable
Methods
Create()
public static RandomNumberGenerator Create()
Creates a new secure random number generator.
Returns RandomNumberGenerator
Fill(byte[] data)
public static void Fill(byte[] data)
Fills the buffer with cryptographically strong random bytes.
GetBytes(byte[] data)
public abstract void GetBytes(byte[] data)
Fills the buffer with cryptographically strong random bytes.
Dispose()
public abstract void Dispose()
Releases the resources used by the generator.