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

@ -40,7 +40,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
{
byte[] uuid = new byte[9];
new Random().NextBytes(uuid);
Random.Shared.NextBytes(uuid);
uuid[3] = (byte)(0x88 ^ uuid[0] ^ uuid[1] ^ uuid[2]);
uuid[8] = (byte)(uuid[3] ^ uuid[4] ^ uuid[5] ^ uuid[6]);