Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

CryptoHelper.GetRandomBytes Method

Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9147)

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.

In This Article
  • GetRandomBytes(Int32)
  • GetRandomBytes(Byte[])
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies