Namespace: System.Security.Cryptography
RandomNumberGenerator
Represents the abstract class from which all implementations of cryptographic random number generators derive.
Methods (2)
void GetBytes(Byte[],Int32,Int32)
Fills the specified byte array with a cryptographically strong random sequence of values.
| Parameter | Description |
|---|---|
| data | The array to fill with cryptographically strong random bytes. |
| offset | The index of the array to start the fill operation. |
| count | The number of bytes to fill. |
void GetBytes(Byte[])
When overridden in a derived class, fills an array of bytes with a cryptographically strong random sequence of values.
| Parameter | Description |
|---|---|
| data | The array to fill with cryptographically strong random bytes. |