misc: Convert UIntUtils.CreateRandom into an extension on Random.
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.Clock
|
||||
|
||||
public SteadyClockCore()
|
||||
{
|
||||
_clockSourceId = UInt128Utils.CreateRandom();
|
||||
_clockSourceId = Random.Shared.NextUInt128();
|
||||
_isRtcResetDetected = false;
|
||||
_isInitialized = false;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.Clock
|
||||
return new SteadyClockTimePoint
|
||||
{
|
||||
TimePoint = 0,
|
||||
ClockSourceId = UInt128Utils.CreateRandom(),
|
||||
ClockSourceId = Random.Shared.NextUInt128(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user