Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 8b0500d

Browse files
committed
Replace RNGCryptoServiceProvider with RandomNumberGenerator
1 parent e09448a commit 8b0500d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNet.Security/Infrastructure/AuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.AspNet.Security.Infrastructure
2323
/// </summary>
2424
public abstract class AuthenticationHandler : IAuthenticationHandler
2525
{
26-
private static readonly RNGCryptoServiceProvider CryptoRandom = new RNGCryptoServiceProvider();
26+
private static readonly RandomNumberGenerator CryptoRandom = RandomNumberGenerator.Create();
2727

2828
private Task<AuthenticationTicket> _authenticate;
2929
private bool _authenticateInitialized;

0 commit comments

Comments
 (0)