Fixes Software Random (#60)

Fixes bug with copying bytes in Software Random.
This commit is contained in:
Kamron Batman 2019-11-11 00:50:26 -08:00 committed by GitHub
parent 8e9221bb5a
commit 365948cc1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,7 +174,7 @@ namespace Server
lock (_sync)
{
CheckSwap(c);
_Working.CopyTo(b);
_Working.AsSpan(0, c).CopyTo(b);
_Index += c;
}
}