misc: Convert UIntUtils.CreateRandom into an extension on Random.

This commit is contained in:
Evan Husted
2024-10-12 21:41:36 -05:00
parent cb31d79164
commit a989d28e03
5 changed files with 14 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.Clock
public SteadyClockCore()
{
_clockSourceId = UInt128Utils.CreateRandom();
_clockSourceId = Random.Shared.NextUInt128();
_isRtcResetDetected = false;
_isInitialized = false;
}

View File

@@ -36,7 +36,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.Clock
return new SteadyClockTimePoint
{
TimePoint = 0,
ClockSourceId = UInt128Utils.CreateRandom(),
ClockSourceId = Random.Shared.NextUInt128(),
};
}
}