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