C# Class Brunet.Util.SecureRandom

Inheritance: System.Random
Datei anzeigen Open project: johnynek/brunet

Protected Properties

Property Type Description
_rng System.Security.Cryptography.RandomNumberGenerator
_sample_buffer byte[]
_state Sample

Public Methods

Method 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

Protected Methods

Method Description
NextSample ( ) : Sample
Pop ( uint max ) : Sample

Private Methods

Method Description
Test100 ( ) : void
TestCoincidences ( ) : void
TestNoRandom ( ) : void

Method Details

Next() public method

public Next ( ) : int
return int

Next() public method

public Next ( int high ) : int
high int
return int

Next() public method

public Next ( int low, int high ) : int
low int
high int
return int

NextBytes() public method

public NextBytes ( byte tofill ) : void
tofill byte
return void

NextDouble() public method

public NextDouble ( ) : double
return double

NextSample() protected method

protected NextSample ( ) : Sample
return Sample

Pop() protected method

protected Pop ( uint max ) : Sample
max uint
return Sample

SecureRandom() public method

public SecureRandom ( ) : System
return System

SecureRandom() public method

public SecureRandom ( RandomNumberGenerator rng ) : System
rng System.Security.Cryptography.RandomNumberGenerator
return System

Test() public method

public Test ( int low, int high, int count, double eps ) : void
low int
high int
count int
eps double
return void

TestCoincidence() public method

public TestCoincidence ( int count ) : void
count int
return void

TestElement() public static method

public static TestElement ( int hits, int bins, int count, double eps ) : bool
hits int
bins int
count int
eps double
return bool

Property Details

_rng protected_oe property

protected RandomNumberGenerator,System.Security.Cryptography _rng
return System.Security.Cryptography.RandomNumberGenerator

_sample_buffer protected_oe property

protected byte[] _sample_buffer
return byte[]

_state protected_oe property

protected Sample _state
return Sample