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 3d45595b41
commit 65d690d9f7
4 changed files with 4 additions and 7 deletions

View file

@ -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.