System.Security.Cryptography.RandomNumberGenerator.GetBytes Method

When overridden in a derived class, fills an array of bytes with a cryptographically strong random sequence of values.

Syntax

public abstract void GetBytes (byte[] data)

Parameters

data
The array to fill with cryptographically strong random bytes.

Remarks

The length of the byte array determines how many random bytes are produced.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0