Fixes Software Random (#60)
Fixes bug with copying bytes in Software Random.
This commit is contained in:
parent
8e9221bb5a
commit
365948cc1a
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ namespace Server
|
||||||
lock (_sync)
|
lock (_sync)
|
||||||
{
|
{
|
||||||
CheckSwap(c);
|
CheckSwap(c);
|
||||||
_Working.CopyTo(b);
|
_Working.AsSpan(0, c).CopyTo(b);
|
||||||
_Index += c;
|
_Index += c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue