mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-14 07:04:24 -04:00
Loader: Fix bugs in CreateProcess(), which now succeeds on hardware (1.0.0)
This commit is contained in:
parent
195528adc6
commit
3e36e81e80
4 changed files with 10 additions and 6 deletions
|
@ -42,7 +42,7 @@ u32 RandomUtils::GetRandomU32(u32 max) {
|
|||
return GetNext() % max;
|
||||
}
|
||||
|
||||
u32 RandomUtils::GetRandomU64(u64 max) {
|
||||
u64 RandomUtils::GetRandomU64(u64 max) {
|
||||
u64 val = GetNext();
|
||||
val |= ((u64)GetNext()) << 32;
|
||||
return val % max;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue