aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs b/Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs
index 0f38e685..3de746ac 100644
--- a/Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs
+++ b/Ryujinx.HLE/HOS/Services/Spl/IRandomInterface.cs
@@ -1,18 +1,17 @@
-using System;
-using System.Security.Cryptography;
+using System.Security.Cryptography;
namespace Ryujinx.HLE.HOS.Services.Spl
{
[Service("csrng")]
class IRandomInterface : DisposableIpcService
{
- private RNGCryptoServiceProvider _rng;
+ private RandomNumberGenerator _rng;
private object _lock = new object();
public IRandomInterface(ServiceCtx context)
{
- _rng = new RNGCryptoServiceProvider();
+ _rng = RandomNumberGenerator.Create();
}
[CommandHipc(0)]