C# 클래스 Org.BouncyCastle.Security.SecureRandom

상속: System.Random
파일 보기 프로젝트 열기: nonorganic/dssnet 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
generator IRandomGenerator

Private Properties

프로퍼티 타입 설명

공개 메소드들

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

메소드 상세

GenerateSeed() 공개 메소드

public GenerateSeed ( int length ) : byte[]
length int
리턴 byte[]

GetInstance() 공개 정적인 메소드

public static GetInstance ( string algorithm ) : SecureRandom
algorithm string
리턴 SecureRandom

GetSeed() 공개 정적인 메소드

public static GetSeed ( int length ) : byte[]
length int
리턴 byte[]

Next() 공개 메소드

public Next ( ) : int
리턴 int

Next() 공개 메소드

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

Next() 공개 메소드

public Next ( int minValue, int maxValue ) : int
minValue int
maxValue int
리턴 int

NextBytes() 공개 메소드

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

NextBytes() 공개 메소드

public NextBytes ( byte buffer, int start, int length ) : void
buffer byte
start int
length int
리턴 void

NextDouble() 공개 메소드

public NextDouble ( ) : double
리턴 double

NextInt() 공개 메소드

public NextInt ( ) : int
리턴 int

NextLong() 공개 메소드

public NextLong ( ) : long
리턴 long

SecureRandom() 공개 메소드

public SecureRandom ( ) : System
리턴 System

SecureRandom() 공개 메소드

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.
리턴 System

SecureRandom() 공개 메소드

public SecureRandom ( byte inSeed ) : System
inSeed byte
리턴 System

SetSeed() 공개 메소드

public SetSeed ( byte inSeed ) : void
inSeed byte
리턴 void

SetSeed() 공개 메소드

public SetSeed ( long seed ) : void
seed long
리턴 void

프로퍼티 상세

generator 보호되어 있는 프로퍼티

protected IRandomGenerator generator
리턴 IRandomGenerator