13 return Create(
"System.Security.Cryptography.RandomNumberGenerator");
34 protected virtual void Dispose(
bool disposing)
40 public abstract void GetBytes(
byte[] data);
52 public virtual void GetBytes(
byte[] data,
int offset,
int count)
66 if (offset + count > data.Length)
72 byte[] array =
new byte[count];
74 Array.
Copy(array, 0, data, offset, count);
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
static void SuppressFinalize(object obj)
Requests that the common language runtime not call the finalizer for the specified object.
static RandomNumberGenerator Create(string rngName)
When overridden in a derived class, creates an instance of the specified implementation of a cryptogr...
Provides a mechanism for releasing unmanaged resources.To browse the .NET Framework source code for t...
static object CreateFromName(string name, params object[] args)
Creates a new instance of the specified cryptographic object with the specified arguments.
virtual void GetNonZeroBytes(byte[] data)
When overridden in a derived class, fills an array of bytes with a cryptographically strong random se...
The exception that is thrown when the value of an argument is outside the allowable range of values a...
static RandomNumberGenerator Create()
When overridden in a derived class, creates an instance of the default implementation of a cryptograp...
Provides information about, and means to manipulate, the current environment and platform....
Accesses the cryptography configuration information.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Controls the system garbage collector, a service that automatically reclaims unused memory.
The exception that is thrown when one of the arguments provided to a method is not valid.
Represents the abstract class from which all implementations of cryptographic random number generator...
static void Copy(Array sourceArray, Array destinationArray, int length)
Copies a range of elements from an T:System.Array starting at the first element and pastes them into ...
abstract void GetBytes(byte[] data)
When overridden in a derived class, fills an array of bytes with a cryptographically strong random se...
virtual void Dispose(bool disposing)
When overridden in a derived class, releases the unmanaged resources used by the T:System....
virtual void GetBytes(byte[] data, int offset, int count)
Fills the specified byte array with a cryptographically strong random sequence of values.
The exception that is thrown when a requested method or operation is not implemented.
void Dispose()
When overridden in a derived class, releases all resources used by the current instance of the T:Syst...