Creates a new
RandomNumberGenerator
wrapper over rng.- Namespace
- RandN
.Compat - Containing Type
- Random
Number Generator Shim
Syntax
public static RandomNumberGeneratorShim<TRng> Create<TRng>(TRng rng) where TRng : ICryptoRng
Type Parameters
Name | Description |
---|---|
TRng |
Parameters
Name | Type | Description |
---|---|---|
rng | TRng | A cryptographically secure RNG. |
Return Value
Type | Description |
---|---|
Random |