GetNonZeroBytes Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.Security.Cryptography
Assembly:  System.Security (in System.Security.dll)

public virtual void GetNonZeroBytes(
	byte[] data
)

Parameters

data
Type: array<System..::..Byte>[]()[][]
The array to fill with a cryptographically strong sequence of random nonzero values.

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

Show: