Skip to content

GetRandomNumbers Method ​

Definition ​

  • Namespace: JASE.Interfaces
  • Assembly: JASE.dll

Overloads ​

NameDescription
bool GetRandomNumbers(byte[] target)Populates an array of bytes using a cryptographically secure random number generator Internally this uses System.Security.Cryptography.RandomNumberGenerator
byte[] GetRandomNumbers(int length)Generates a cryptographically secure array of bytes of the requested length. Internally this uses System.Security.Cryptography.RandomNumberGenerator

bool GetRandomNumbers(byte[] target) ​

csharp
bool GetRandomNumbers(byte[] target)

Populates an array of bytes using a cryptographically secure random number generator Internally this uses System.Security.Cryptography.RandomNumberGenerator

Parameters ​

NameDescription
targetTarget array of bytes

byte[] GetRandomNumbers(int length) ​

csharp
byte[] GetRandomNumbers(int length)

Generates a cryptographically secure array of bytes of the requested length. Internally this uses System.Security.Cryptography.RandomNumberGenerator

Parameters ​

NameDescription
lengthNumber of bytes requested