From 365948cc1a0f5932eac46afe486d006e16ef7db4 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Mon, 11 Nov 2019 00:50:26 -0800 Subject: [PATCH] Fixes Software Random (#60) Fixes bug with copying bytes in Software Random. --- Projects/Server/Random.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/Server/Random.cs b/Projects/Server/Random.cs index 7a92fc131..80409a56e 100644 --- a/Projects/Server/Random.cs +++ b/Projects/Server/Random.cs @@ -174,7 +174,7 @@ namespace Server lock (_sync) { CheckSwap(c); - _Working.CopyTo(b); + _Working.AsSpan(0, c).CopyTo(b); _Index += c; } }