Uses Environment.TickCount for seed instead of DateTime.Now

This commit is contained in:
Phil Scott 2021-04-02 12:20:18 -04:00 committed by Patrik Svensson
parent c765bbd0dd
commit 9204671b27

View File

@ -9,7 +9,7 @@ namespace Spectre.Console
public AnsiLinkHasher() public AnsiLinkHasher()
{ {
_random = new Random(DateTime.Now.Millisecond); _random = new Random(Environment.TickCount);
} }
public int GenerateId(string link, string text) public int GenerateId(string link, string text)