Class RNGCryptoRandom
a cryptographic random number generator
Inheritance
System.Object
RNGCryptoRandom
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Nier.Commons
Assembly: cs.temp.dll.dll
Syntax
public class RNGCryptoRandom : IRandom
Fields
Instance
Singleton instance
Declaration
public static readonly RNGCryptoRandom Instance
Field Value
Type | Description |
---|---|
RNGCryptoRandom |
Methods
Next()
Declaration
public int Next()
Returns
Type | Description |
---|---|
System.Int32 |
Next(Int32)
Declaration
public int Next(int maxValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxValue |
Returns
Type | Description |
---|---|
System.Int32 |
Next(Int32, Int32)
Declaration
public int Next(int minValue, int maxValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | minValue | |
System.Int32 | maxValue |
Returns
Type | Description |
---|---|
System.Int32 |
NextBytes(Byte[])
Declaration
public void NextBytes(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer |
NextDouble()
Declaration
public double NextDouble()
Returns
Type | Description |
---|---|
System.Double |