Use NextByte to properly construct colours (#42335)

This commit is contained in:
BarryNorfolk 2026-01-10 20:56:17 +01:00
parent 97ed41c408
commit 580ee0b13f
1 changed files with 3 additions and 3 deletions

View File

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