Replace RNGCryptoServiceProvider with RandomNumberGenerator
This commit is contained in:
parent
e09448a383
commit
8b0500dacf
|
|
@ -23,7 +23,7 @@ namespace Microsoft.AspNet.Security.Infrastructure
|
|||
/// </summary>
|
||||
public abstract class AuthenticationHandler : IAuthenticationHandler
|
||||
{
|
||||
private static readonly RNGCryptoServiceProvider CryptoRandom = new RNGCryptoServiceProvider();
|
||||
private static readonly RandomNumberGenerator CryptoRandom = RandomNumberGenerator.Create();
|
||||
|
||||
private Task<AuthenticationTicket> _authenticate;
|
||||
private bool _authenticateInitialized;
|
||||
|
|
|
|||
Loading…
Reference in New Issue