From: BarryNorfolk Date: Sat, 10 Jan 2026 19:56:17 +0000 (+0100) Subject: Use NextByte to properly construct colours (#42335) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=319617f6ba923f31c8a14b5cc12e0a0f42d0c23d;p=space-station-14.git Use NextByte to properly construct colours (#42335) --- diff --git a/Content.Client/NetworkConfigurator/NetworkConfiguratorLinkOverlay.cs b/Content.Client/NetworkConfigurator/NetworkConfiguratorLinkOverlay.cs index 19da5aa959..cd57c3b5fb 100644 --- a/Content.Client/NetworkConfigurator/NetworkConfiguratorLinkOverlay.cs +++ b/Content.Client/NetworkConfigurator/NetworkConfiguratorLinkOverlay.cs @@ -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); }