mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-27 22:59:05 +00:00
misc: Convert UIntUtils.CreateRandom into an extension on Random.
This commit is contained in:
@@ -63,7 +63,7 @@ namespace Ryujinx.HLE.HOS.Services.Mii
|
||||
|
||||
public CreateId MakeCreateId()
|
||||
{
|
||||
UInt128 value = UInt128Utils.CreateRandom();
|
||||
UInt128 value = Random.Shared.NextUInt128();
|
||||
|
||||
// Ensure the random ID generated is valid as a create id.
|
||||
value &= ~new UInt128(0xC0, 0);
|
||||
|
||||
Reference in New Issue
Block a user