From 408989d83a65cbc0b8aa07af774994a9e95c7057 Mon Sep 17 00:00:00 2001 From: Sylvie Nightshade Date: Tue, 29 Apr 2025 15:49:22 +0100 Subject: [PATCH] switch to shared random for GenerateCheapGuid --- Kyubey/Utils.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Kyubey/Utils.cs b/Kyubey/Utils.cs index bd835dc..8f03a97 100644 --- a/Kyubey/Utils.cs +++ b/Kyubey/Utils.cs @@ -16,9 +16,8 @@ public class Utils // This game is wonderful and working on it is even more so public static string GenerateCheapGuid() { - var rng = new Random(); var bytes = new byte[8]; - rng.NextBytes(bytes); + Random.Shared.NextBytes(bytes); return Convert.ToHexStringLower(bytes); } } \ No newline at end of file