Make use of Random.Shared (#3852)

This commit is contained in:
Berkan Diler 2022-11-16 19:34:18 +01:00 committed by GitHub
parent b96794e72b
commit 11aae9cfbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 7 deletions

View file

@ -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);
}