From 9204671b271dff93431ae892b7fc318eb968b09c Mon Sep 17 00:00:00 2001 From: Phil Scott Date: Fri, 2 Apr 2021 12:20:18 -0400 Subject: [PATCH] Uses Environment.TickCount for seed instead of DateTime.Now --- src/Spectre.Console/Internal/Backends/Ansi/AnsiLinkHasher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Spectre.Console/Internal/Backends/Ansi/AnsiLinkHasher.cs b/src/Spectre.Console/Internal/Backends/Ansi/AnsiLinkHasher.cs index d964091..fb56b5e 100644 --- a/src/Spectre.Console/Internal/Backends/Ansi/AnsiLinkHasher.cs +++ b/src/Spectre.Console/Internal/Backends/Ansi/AnsiLinkHasher.cs @@ -9,7 +9,7 @@ namespace Spectre.Console public AnsiLinkHasher() { - _random = new Random(DateTime.Now.Millisecond); + _random = new Random(Environment.TickCount); } public int GenerateId(string link, string text)