← Interactive API Explorer
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.
ParameterDescription
dataThe array to fill with cryptographically strong random bytes.
offsetThe index of the array to start the fill operation.
countThe 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.
ParameterDescription
dataThe array to fill with cryptographically strong random bytes.