Make use of Random.Shared (#3852)
This commit is contained in:
parent
b96794e72b
commit
11aae9cfbc
4 changed files with 4 additions and 7 deletions
|
@ -89,7 +89,7 @@ namespace Ryujinx.HLE.HOS.Services.Prepo
|
|||
{
|
||||
byte[] randomBuffer = new byte[8];
|
||||
|
||||
new Random().NextBytes(randomBuffer);
|
||||
Random.Shared.NextBytes(randomBuffer);
|
||||
|
||||
_systemSessionId = BitConverter.ToUInt64(randomBuffer, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue