C# Class Brunet.Util.SecureRandom

Inheritance: System.Random
Afficher le fichier Open project: johnynek/brunet

Protected Properties

Свойство Type Description
_rng System.Security.Cryptography.RandomNumberGenerator
_sample_buffer byte[]
_state Sample

Méthodes publiques

Méthode Description
Next ( ) : int
Next ( int high ) : int
Next ( int low, int high ) : int
NextBytes ( byte tofill ) : void
NextDouble ( ) : double
SecureRandom ( ) : System
SecureRandom ( RandomNumberGenerator rng ) : System
Test ( int low, int high, int count, double eps ) : void
TestCoincidence ( int count ) : void
TestElement ( int hits, int bins, int count, double eps ) : bool

Méthodes protégées

Méthode Description
NextSample ( ) : Sample
Pop ( uint max ) : Sample

Private Methods

Méthode Description
Test100 ( ) : void
TestCoincidences ( ) : void
TestNoRandom ( ) : void

Method Details

Next() public méthode

public Next ( ) : int
Résultat int

Next() public méthode

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

Next() public méthode

public Next ( int low, int high ) : int
low int
high int
Résultat int

NextBytes() public méthode

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

NextDouble() public méthode

public NextDouble ( ) : double
Résultat double

NextSample() protected méthode

protected NextSample ( ) : Sample
Résultat Sample

Pop() protected méthode

protected Pop ( uint max ) : Sample
max uint
Résultat Sample

SecureRandom() public méthode

public SecureRandom ( ) : System
Résultat System

SecureRandom() public méthode

public SecureRandom ( RandomNumberGenerator rng ) : System
rng System.Security.Cryptography.RandomNumberGenerator
Résultat System

Test() public méthode

public Test ( int low, int high, int count, double eps ) : void
low int
high int
count int
eps double
Résultat void

TestCoincidence() public méthode

public TestCoincidence ( int count ) : void
count int
Résultat void

TestElement() public static méthode

public static TestElement ( int hits, int bins, int count, double eps ) : bool
hits int
bins int
count int
eps double
Résultat bool

Property Details

_rng protected_oe property

protected RandomNumberGenerator,System.Security.Cryptography _rng
Résultat System.Security.Cryptography.RandomNumberGenerator

_sample_buffer protected_oe property

protected byte[] _sample_buffer
Résultat byte[]

_state protected_oe property

protected Sample _state
Résultat Sample