CryptoHelper.GetRandomBytes Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9083)
GetRandomBytes(Int32)
Returns an array of bytes with a cryptographically strong random sequence of values.
Declaration
public static byte[] GetRandomBytes(int count)
Parameters
Type | Name | Description |
---|---|---|
Int32 | count | Array length. |
Returns
Type | Description |
---|---|
Byte[] | Array filled with random data. |
GetRandomBytes(Byte[])
Fills specified array of bytes with a cryptographically strong random sequence of values.
Declaration
public static void GetRandomBytes(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | Array to fill random data with. |