System.Security.Cryptography.RNGCryptoServiceProvider.GetBytes Method

Fills an array of bytes with a cryptographically strong sequence of random values.

Syntax

public override void GetBytes (byte[] data)

Parameters

data
The array to fill with a cryptographically strong sequence of random values.

Remarks

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

This method is thread safe.

Requirements

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