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

Namespace:  Rebex.Security.Cryptography
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Shared Sub GetRandomBytes ( _
	buffer As Byte() _
)
C#
public static void GetRandomBytes(
	byte[] buffer
)

Parameters

buffer
Type: array<System..::..Byte>[]()[][]
Array to fill random data with.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also