A shim able to wrap any
IRng
as a RandomNumberGenerator
.- Namespace
- RandN
.Compat - Base Types
- Random
Number Generator
- Random
Syntax
public sealed class RandomNumberGeneratorShim<TRng> : RandomNumberGenerator
where TRng : notnull, ICryptoRng
Type Parameters
Name | Description |
---|---|
TRng |
Constructors
Name | Summary |
---|---|
Random | Constructs a new RandomNumberGenerator wrapper over rng. |
Methods
Name | Return Value | Summary |
---|---|---|
Dispose | void | |
GetBytes | void | |
GetBytes | void | |
GetBytes | void | |
GetNonZeroBytes | void | |
GetNonZeroBytes | void |