mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-21 02:15:07 -04:00
Loader: Implement RandomUtils (for ASLR)
This commit is contained in:
parent
b11c2fe755
commit
d09c48c6c7
3 changed files with 62 additions and 4 deletions
9
stratosphere/loader/source/ldr_random.hpp
Normal file
9
stratosphere/loader/source/ldr_random.hpp
Normal file
|
@ -0,0 +1,9 @@
|
|||
#pragma once
|
||||
#include <switch.h>
|
||||
|
||||
class RandomUtils {
|
||||
public:
|
||||
static u32 GetNext();
|
||||
static u32 GetRandomU32(u32 max);
|
||||
static u32 GetRandomU64(u64 max);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue