mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-24 04:02:50 +08:00
Uses Environment.TickCount for seed instead of DateTime.Now
This commit is contained in:
parent
c765bbd0dd
commit
9204671b27
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user