This commit is contained in:
Reece Wilson 2023-10-07 17:12:54 +01:00
parent 795fb3d2d1
commit f585d41ba3

View File

@ -169,7 +169,7 @@ namespace Aurora::RNG
static AuUInt64 gTimeHolder; static AuUInt64 gTimeHolder;
static AuUInt64 gTime = (gTimeHolder = AuTime::SteadyClockJiffies()) >= 10'000'000ull ? static AuUInt64 gTime = (gTimeHolder = AuTime::SteadyClockJiffies()) >= 10'000'000ull ?
1 : 1 :
(10'000'000ull / AuPageRoundUp<AuUInt64>(gTimeHolder, 1024)); AuPageRoundUp<AuUInt64>((10'000'000ull / gTimeHolder), 1024);
return AuTime::SteadyClockNS() * gTime / 10'000ull; return AuTime::SteadyClockNS() * gTime / 10'000ull;
#endif #endif
} }