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/Friend/ServiceCreator | |
| parent | b96794e72b76138ee1cf36226c47554b4cf1d670 (diff) | |
Make use of Random.Shared (#3852)
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Friend/ServiceCreator')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs b/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs index 1cf03f5b..77499fa5 100644 --- a/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs +++ b/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs @@ -266,9 +266,8 @@ namespace Ryujinx.HLE.HOS.Services.Friend.ServiceCreator // NOTE: Calls nn::friends::detail::service::core::PlayHistoryManager::GetInstance and stores the instance. byte[] randomBytes = new byte[8]; - Random random = new Random(); - random.NextBytes(randomBytes); + Random.Shared.NextBytes(randomBytes); // NOTE: Calls nn::friends::detail::service::core::UuidManager::GetInstance and stores the instance. // Then call nn::friends::detail::service::core::AccountStorageManager::GetInstance and store the instance. |
