C# Class SupportClass.SecureRandomSupport, csharp-ldap

This class uses a cryptographic Random Number Generator to provide support for strong pseudo-random number generation.
ファイルを表示 Open project: EventStore/csharp-ldap

Public Methods

Method Description
GetSeed ( int numberOfBytes ) : byte[]

Returns the given number of seed bytes generated for the first running of a new instance of the random number generator

SecureRandomSupport ( ) : System

Initializes a new instance of the random number generator.

SecureRandomSupport ( byte seed ) : System

Initializes a new instance of the random number generator with the given seed.

SetSeed ( byte newSeed ) : void

Creates a new instance of the random number generator with the seed provided by the user

SetSeed ( long newSeed ) : void

Creates a new instance of the random number generator with the seed provided by the user

Private Methods

Method Description
NextBytes ( byte randomnumbersarray ) : sbyte[]

Method Details

GetSeed() public static method

Returns the given number of seed bytes generated for the first running of a new instance of the random number generator
public static GetSeed ( int numberOfBytes ) : byte[]
numberOfBytes int Number of seed bytes to generate
return byte[]

SecureRandomSupport() public method

Initializes a new instance of the random number generator.
public SecureRandomSupport ( ) : System
return System

SecureRandomSupport() public method

Initializes a new instance of the random number generator with the given seed.
public SecureRandomSupport ( byte seed ) : System
seed byte The initial seed for the generator
return System

SetSeed() public method

Creates a new instance of the random number generator with the seed provided by the user
public SetSeed ( byte newSeed ) : void
newSeed byte Seed to create a new random number generator
return void

SetSeed() public method

Creates a new instance of the random number generator with the seed provided by the user
public SetSeed ( long newSeed ) : void
newSeed long Seed to create a new random number generator
return void