Use NextByte to properly construct colours (#42335)

This commit is contained in:
BarryNorfolk
2026-01-10 20:56:17 +01:00
committed by GitHub
parent 4ebdbff86b
commit 319617f6ba

View File

@@ -41,9 +41,9 @@ public sealed class NetworkConfiguratorLinkOverlay : Overlay
if (!Colors.TryGetValue(uid, out var color))
{
color = new Color(
_random.Next(0, 255),
_random.Next(0, 255),
_random.Next(0, 255));
_random.NextByte(0, 255),
_random.NextByte(0, 255),
_random.NextByte(0, 255));
Colors.Add(uid, color);
}