C# Class TwoFactorAuthNet.Providers.Rng.DefaultRngProvider

Provides a cryptographically secure RNG provider.
The DefaultRngProvider is based on a RNGCryptoServiceProvider.
Inheritance: IRngProvider
Show file Open project: RobThree/TwoFactorAuth.Net

Public Methods

Method Description
GetRandomBytes ( int bytes ) : byte[]

Fills an array of bytes with a cryptographically secure sequence of random values.

Method Details

GetRandomBytes() public method

Fills an array of bytes with a cryptographically secure sequence of random values.
public GetRandomBytes ( int bytes ) : byte[]
bytes int The desired number of bytes to return.
return byte[]