The constructor for a CSPRNG. When a CSPRNG is created with this constructor, the relevant libraries and functions from them are loaded. If they cannot be loaded, the constructor throws a CSPRNGException and the CSPRNG will not be created.
The constructor for a CSPRNG. When a CSPRNG is created with this constructor, the pseudo-device, $(MONO /dev/random) is opened for reading (not writing). If it cannot be opened, the constructor throws a CSPRNGException and the CSPRNG will not be created.
Upon deleting the CSPRNG object, the libraries used are unloaded, and any relevant cryptographic constructs used by those libraries are released.
Returns the specified number of cryptographically-secure pseudo-random bytes, using one of the system APIs.
Returns the specified number of cryptographically-secure pseudo-random bytes, using one of the system APIs.
Returns the specified number of cryptographically-secure pseudo-random bytes, using one of the system APIs.
Returns boolean indicating whether this library is using the Windows Crypto API to generate random bytes from the $(MONO CryptGenRandom) API function.
Returns boolean indicating whether this library is using the Windows Cryptography: Next Generation API to generate random bytes from the $(MONO BCryptGenRandom) API function.
Returns a boolean indicating whether this library was able to load $(MONO advapi32.dll) and $(MONO RtlGenRandom) from it, and will use $(MONO RtlGenRandom) to obtain secure random bytes.
The size of the buffer used to read from $(MONO /dev/random)
The class that wraps the system's CSPRNG APIs, making it easy to retrieve cryptographically-secure pseudo-random bytes.