System.Security.Cryptography.RandomNumberGenerator.GetNonZeroBytes Method

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

Syntax

public virtual void GetNonZeroBytes (byte[] data)

Parameters

data
The array to fill with cryptographically strong random nonzero 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