Class CryptoRandom
Cryptographically secure random number generator.
Inheritance
System.Object
CryptoRandom
Namespace: SuperNet.Netcode.Crypto
Assembly: cs.temp.dll.dll
Syntax
public class CryptoRandom : ICryptoRandom, IDisposable
Constructors
CryptoRandom()
Create random number generator.
Declaration
public CryptoRandom()
Methods
Dispose()
Instantly dispose of all resources.
Declaration
public void Dispose()
GetBytes(Byte[], Int32, Int32)
Generate cryptographically secure random data.
This method is thread safe.
Declaration
public void GetBytes(byte[] output, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | output | Output buffer to write to. |
System.Int32 | offset | Output offset to write to. |
System.Int32 | count | Number of bytes to write. |
Implements
IDisposable