diff options
author | Berkan Diler <b.diler@gmx.de> | 2022-11-16 19:34:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 15:34:18 -0300 |
commit | 11aae9cfbc07d337c8b222e15f5d8e676f3bf46f (patch) | |
tree | 40b0ea74e3bf3b630e36896a4ad96ca71648add6 /Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs | |
parent | b96794e72b76138ee1cf36226c47554b4cf1d670 (diff) |
Make use of Random.Shared (#3852)1.1.347
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs')
-rw-r--r-- | Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs b/Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs index 5590bfdd..0d1ae27f 100644 --- a/Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs +++ b/Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs @@ -32,8 +32,6 @@ namespace Ryujinx.HLE.HOS.Services.Ro private KProcess _owner; private IVirtualMemoryManager _ownerMm; - private static Random _random = new Random(); - public IRoInterface(ServiceCtx context) { _nrrInfos = new List<NrrInfo>(MaxNrr); @@ -283,7 +281,7 @@ namespace Ryujinx.HLE.HOS.Services.Ro { while (true) { - ulong randomOffset = (ulong)(uint)_random.Next(0, (int)addressSpacePageLimit) << 12; + ulong randomOffset = (ulong)(uint)Random.Shared.Next(0, (int)addressSpacePageLimit) << 12; targetAddress = memMgr.GetAddrSpaceBaseAddr() + randomOffset; |