A cryptographically secure random number generator wrapping
RNGCryptoServiceProvider.- Namespace
- RandN
.Rngs - Interfaces
- ICryptoRng
- IRng
- IDisposable
- Base Types
- object
Syntax
public sealed class CryptoServiceProvider : ICryptoRng, IRng, IDisposableMethods
| Name | Return Value | Summary |
|---|---|---|
| Create | Crypto | Creates a new instance of CryptoServiceProvider.static |
| Dispose | void | |
| Fill | void | Completely fills the span with random bytes. |
| GetFactory | Crypto | Returns a singleton instance of CryptoServiceProvider.Factory.static |
| NextUInt32 | uint | Returns the next 32 bits in the sequence as a UInt32. |
| NextUInt64 | ulong | Returns the next 64 bits in the sequence as a UInt64. |
Extension Methods
| Name | Value | Summary |
|---|---|---|
| ShuffleInPlace | void | Shuffles a list using the in-place Fisher-Yates shuffling algorithm. From RngExtensions |