Make use of Random.Shared (#3852)
This commit is contained in:
parent
b96794e72b
commit
11aae9cfbc
4 changed files with 4 additions and 7 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue