C# Class Org.BouncyCastle.Security.SecureRandom

Inheritance: System.Random
Afficher le fichier Open project: nonorganic/dssnet Class Usage Examples

Protected Properties

Свойство Type Description
generator IRandomGenerator

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
GenerateSeed ( int length ) : byte[]
GetInstance ( string algorithm ) : SecureRandom
GetSeed ( int length ) : byte[]
Next ( ) : int
Next ( int maxValue ) : int
Next ( int minValue, int maxValue ) : int
NextBytes ( byte buffer ) : void
NextBytes ( byte buffer, int start, int length ) : void
NextDouble ( ) : double
NextInt ( ) : int
NextLong ( ) : long
SecureRandom ( ) : System
SecureRandom ( IRandomGenerator generator ) : System

Use the specified instance of IRandomGenerator as random source.

This constructor performs no seeding of either the IRandomGenerator or the constructed SecureRandom. It is the responsibility of the client to provide proper seed material as necessary/appropriate for the given IRandomGenerator implementation.

SecureRandom ( byte inSeed ) : System
SetSeed ( byte inSeed ) : void
SetSeed ( long seed ) : void

Method Details

GenerateSeed() public méthode

public GenerateSeed ( int length ) : byte[]
length int
Résultat byte[]

GetInstance() public static méthode

public static GetInstance ( string algorithm ) : SecureRandom
algorithm string
Résultat SecureRandom

GetSeed() public static méthode

public static GetSeed ( int length ) : byte[]
length int
Résultat byte[]

Next() public méthode

public Next ( ) : int
Résultat int

Next() public méthode

public Next ( int maxValue ) : int
maxValue int
Résultat int

Next() public méthode

public Next ( int minValue, int maxValue ) : int
minValue int
maxValue int
Résultat int

NextBytes() public méthode

public NextBytes ( byte buffer ) : void
buffer byte
Résultat void

NextBytes() public méthode

public NextBytes ( byte buffer, int start, int length ) : void
buffer byte
start int
length int
Résultat void

NextDouble() public méthode

public NextDouble ( ) : double
Résultat double

NextInt() public méthode

public NextInt ( ) : int
Résultat int

NextLong() public méthode

public NextLong ( ) : long
Résultat long

SecureRandom() public méthode

public SecureRandom ( ) : System
Résultat System

SecureRandom() public méthode

Use the specified instance of IRandomGenerator as random source.
This constructor performs no seeding of either the IRandomGenerator or the constructed SecureRandom. It is the responsibility of the client to provide proper seed material as necessary/appropriate for the given IRandomGenerator implementation.
public SecureRandom ( IRandomGenerator generator ) : System
generator IRandomGenerator The source to generate all random bytes from.
Résultat System

SecureRandom() public méthode

public SecureRandom ( byte inSeed ) : System
inSeed byte
Résultat System

SetSeed() public méthode

public SetSeed ( byte inSeed ) : void
inSeed byte
Résultat void

SetSeed() public méthode

public SetSeed ( long seed ) : void
seed long
Résultat void

Property Details

generator protected_oe property

protected IRandomGenerator generator
Résultat IRandomGenerator