From 8b0500dacfb81470eb97c7432cdb722b52ace757 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Thu, 17 Jul 2014 09:19:22 -0700 Subject: [PATCH] Replace RNGCryptoServiceProvider with RandomNumberGenerator --- .../Infrastructure/AuthenticationHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.Security/Infrastructure/AuthenticationHandler.cs b/src/Microsoft.AspNet.Security/Infrastructure/AuthenticationHandler.cs index 3526d1e5b9..57c1931f9c 100644 --- a/src/Microsoft.AspNet.Security/Infrastructure/AuthenticationHandler.cs +++ b/src/Microsoft.AspNet.Security/Infrastructure/AuthenticationHandler.cs @@ -23,7 +23,7 @@ namespace Microsoft.AspNet.Security.Infrastructure /// public abstract class AuthenticationHandler : IAuthenticationHandler { - private static readonly RNGCryptoServiceProvider CryptoRandom = new RNGCryptoServiceProvider(); + private static readonly RandomNumberGenerator CryptoRandom = RandomNumberGenerator.Create(); private Task _authenticate; private bool _authenticateInitialized;