Loader: Implement RandomUtils (for ASLR)
This commit is contained in:
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);
|
||||
};
|
||||
Reference in New Issue
Block a user