File tree 2 files changed +2
-4
lines changed
src/LinkDotNet.Blog.Web/Features/Components
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -446,7 +446,6 @@ dotnet_diagnostic.CA1056.severity = none # CA1056: Uri properties should not be
446
446
dotnet_diagnostic.CA1812.severity = none # CA1812: Avoid uninstantiated internal classes
447
447
dotnet_diagnostic.CA2201.severity = suggestion # CA2201: Do not raise reserved exception types
448
448
dotnet_diagnostic.CA2227.severity = suggestion # CA2227: Collection properties should be read only
449
- dotnet_diagnostic.CA5394.severity = none # CA5394 : Random is an insecure random number generator.
450
449
451
450
# SonarAnalyzer.CSharp
452
451
# https://rules.sonarsource.com/csharp
@@ -466,8 +465,6 @@ dotnet_diagnostic.BL0005.severity = none
466
465
dotnet_diagnostic.BL0006.severity = none
467
466
dotnet_diagnostic.BL0007.severity = none
468
467
469
- dotnet_diagnostic.CA5394.severity = none # CA5394 : Random is an insecure random number generator.
470
-
471
468
# #########################################
472
469
# Custom Test Code Analyzers Rules
473
470
# #########################################
Original file line number Diff line number Diff line change
1
+ @using System .Security .Cryptography
1
2
<div class =" m-auto text-center" >
2
3
<h1 class =" fs-1" >404 - o((⊙﹏⊙))o</h1 >
3
4
<br />
84
85
}
85
86
86
87
remainingGuesses = maxGuesses ;
87
- targetNumber = Random . Shared . Next (1 , maxNumber + 1 );
88
+ targetNumber = RandomNumberGenerator . GetInt32 (1 , maxNumber + 1 );
88
89
}
89
90
90
91
private void CheckGuess ()
You can’t perform that action at this time.
0 commit comments