C# 클래스 Brunet.Util.SecureRandom

상속: System.Random
파일 보기 프로젝트 열기: johnynek/brunet

보호된 프로퍼티들

프로퍼티 타입 설명
_rng System.Security.Cryptography.RandomNumberGenerator
_sample_buffer byte[]
_state Sample

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
NextSample ( ) : Sample
Pop ( uint max ) : Sample

비공개 메소드들

메소드 설명
Test100 ( ) : void
TestCoincidences ( ) : void
TestNoRandom ( ) : void

메소드 상세

Next() 공개 메소드

public Next ( ) : int
리턴 int

Next() 공개 메소드

public Next ( int high ) : int
high int
리턴 int

Next() 공개 메소드

public Next ( int low, int high ) : int
low int
high int
리턴 int

NextBytes() 공개 메소드

public NextBytes ( byte tofill ) : void
tofill byte
리턴 void

NextDouble() 공개 메소드

public NextDouble ( ) : double
리턴 double

NextSample() 보호된 메소드

protected NextSample ( ) : Sample
리턴 Sample

Pop() 보호된 메소드

protected Pop ( uint max ) : Sample
max uint
리턴 Sample

SecureRandom() 공개 메소드

public SecureRandom ( ) : System
리턴 System

SecureRandom() 공개 메소드

public SecureRandom ( RandomNumberGenerator rng ) : System
rng System.Security.Cryptography.RandomNumberGenerator
리턴 System

Test() 공개 메소드

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

TestCoincidence() 공개 메소드

public TestCoincidence ( int count ) : void
count int
리턴 void

TestElement() 공개 정적인 메소드

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

프로퍼티 상세

_rng 보호되어 있는 프로퍼티

protected RandomNumberGenerator,System.Security.Cryptography _rng
리턴 System.Security.Cryptography.RandomNumberGenerator

_sample_buffer 보호되어 있는 프로퍼티

protected byte[] _sample_buffer
리턴 byte[]

_state 보호되어 있는 프로퍼티

protected Sample _state
리턴 Sample