C# 클래스 KeePassLib.Cryptography.CryptoRandom

Cryptographically strong random number generator. The returned values are unpredictable and cannot be reproduced. CryptoRandom is a singleton class.
파일 보기 프로젝트 열기: cappert/keepass2 1 사용 예제들

공개 메소드들

메소드 설명
AddEntropy ( byte pbEntropy ) : void

Update the internal seed of the random number generator based on entropy data. This method is thread-safe.

GetRandomBytes ( uint uRequestedBytes ) : byte[]

Get a number of cryptographically strong random bytes. This method is thread-safe.

비공개 메소드들

메소드 설명
CryptoRandom ( ) : System.Drawing
GenerateRandom256 ( ) : byte[]
GetCspData ( ) : byte[]
GetSystemData ( Random rWeak ) : byte[]

메소드 상세

AddEntropy() 공개 메소드

Update the internal seed of the random number generator based on entropy data. This method is thread-safe.
public AddEntropy ( byte pbEntropy ) : void
pbEntropy byte Entropy bytes.
리턴 void

GetRandomBytes() 공개 메소드

Get a number of cryptographically strong random bytes. This method is thread-safe.
public GetRandomBytes ( uint uRequestedBytes ) : byte[]
uRequestedBytes uint Number of requested random bytes.
리턴 byte[]