Replace RNGCryptoServiceProvider with RandomNumberGenerator

This commit is contained in:
Pranav K 2014-07-17 09:19:22 -07:00
parent e09448a383
commit 8b0500dacf
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ namespace Microsoft.AspNet.Security.Infrastructure
/// </summary> /// </summary>
public abstract class AuthenticationHandler : IAuthenticationHandler public abstract class AuthenticationHandler : IAuthenticationHandler
{ {
private static readonly RNGCryptoServiceProvider CryptoRandom = new RNGCryptoServiceProvider(); private static readonly RandomNumberGenerator CryptoRandom = RandomNumberGenerator.Create();
private Task<AuthenticationTicket> _authenticate; private Task<AuthenticationTicket> _authenticate;
private bool _authenticateInitialized; private bool _authenticateInitialized;