We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Random.Shared
1 parent 2a8be4a commit eaa357bCopy full SHA for eaa357b
CUIFlavoredPortfolioSite/App.razor.cs
@@ -64,7 +64,7 @@ protected override async Task OnInitializedAsync()
64
65
private async Task TypeAndExecuteCommandAsync(string text)
66
{
67
- var r = new Random((int)(DateTime.Now.Ticks % int.MaxValue));
+ var r = Random.Shared;
68
foreach (var c in text)
69
70
this.CommandLineInputText += c;
@@ -138,7 +138,7 @@ private async ValueTask ExecuteCommandAsync()
138
this.StateHasChanged();
139
}
140
141
- private CancellationTokenSource _CommandCanceller;
+ private CancellationTokenSource? _CommandCanceller;
142
143
private async ValueTask ProcessCommandLineAsync(string commandLineInputText, bool noSaveHistory = false)
144
0 commit comments