C# Класс BraintreeEncryption.Library.BouncyCastle.Security.SecureRandom

Наследование: System.Random
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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