SecureRandom Class

Definition

Namespace: Org.BouncyCastle.Security
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public class SecureRandom : Random
Inheritance
Object    Random    SecureRandom
Derived

Constructors

SecureRandomInitializes a new instance of the SecureRandom class
SecureRandom(IRandomGenerator)Use the specified instance of IRandomGenerator as random source.
SecureRandom(IRandomGenerator, Int32)Initializes a new instance of the SecureRandom class

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GenerateSeed(Int32) 
GenerateSeed(SpanByte) 
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetInstance(String) Create and auto-seed an instance based on the given algorithm.
GetInstance(String, Boolean) Create an instance based on the given algorithm, with optional auto-seeding
GetNextBytes 
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Next
(Overrides RandomNext)
Next(Int32)
(Overrides RandomNext(Int32))
Next(Int32, Int32)
(Overrides RandomNext(Int32, Int32))
NextBytes(Byte)
(Overrides RandomNextBytes(Byte))
NextBytes(SpanByte)
(Overrides RandomNextBytes(SpanByte))
NextBytes(Byte, Int32, Int32) 
NextDouble
(Overrides RandomNextDouble)
NextInt 
NextInt64Returns a non-negative random integer.
(Inherited from Random)
NextInt64(Int64)Returns a non-negative random integer that is less than the specified maximum.
(Inherited from Random)
NextInt64(Int64, Int64)Returns a random integer that is within a specified range.
(Inherited from Random)
NextLong 
NextSingleReturns a random floating-point number that is greater than or equal to 0.0, and less than 1.0.
(Inherited from Random)
SampleReturns a random floating-point number between 0.0 and 1.0.
(Inherited from Random)
SetSeed(Byte) 
SetSeed(Int64) 
SetSeed(SpanByte) 
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

See Also