Click or drag to resize

RNGCryptoServiceProviderGetBytes Method

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

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public override void GetBytes(
	byte[] data
)

Parameters

data  Byte
The array to fill with a cryptographically strong sequence of random values.
Exceptions
ExceptionCondition
CryptographicExceptionThe cryptographic service provider (CSP) cannot be acquired.
ArgumentNullExceptiondata is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also