Returns an 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 Function GetRandomBytes ( _
	count As Integer _
) As Byte()
C#
public static byte[] GetRandomBytes(
	int count
)

Parameters

count
Type: System..::..Int32
Array length.

Return Value

Array filled with random data.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also