Table of Contents

Class RandomNumber

Namespace
ComponentSpace.Saml2.Utility
Assembly
ComponentSpace.Saml2.dll

Provides random number generator methods.

public static class RandomNumber
Inheritance
RandomNumber
Inherited Members

Methods

GenerateRandomBytes(int)

Generates a random byte array.

public static byte[] GenerateRandomBytes(int length = 32)

Parameters

length int

The length of the byte array.

Returns

byte[]

The random byte array.

GenerateRandomID(int)

Generates a random SAML identifier.

public static string GenerateRandomID(int length = 32)

Parameters

length int

The length of the SAML identifier.

Returns

string

The random SAML identifier

GenerateRandomString(int)

Generates a random string.

public static string GenerateRandomString(int length = 32)

Parameters

length int

The length of the string.

Returns

string

The random string.