mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
SSL: Implement Initialize and RNG
This commit is contained in:
parent
fa91c4effb
commit
b5c636875d
2 changed files with 54 additions and 1 deletions
|
@ -4,12 +4,19 @@
|
|||
#include "logger.hpp"
|
||||
#include "memory.hpp"
|
||||
|
||||
#include <random>
|
||||
|
||||
class SSLService {
|
||||
Handle handle = KernelHandles::SSL;
|
||||
Memory& mem;
|
||||
MAKE_LOG_FUNCTION(log, sslLogger)
|
||||
|
||||
std::mt19937 rng; // Use a Mersenne Twister for RNG since this service is supposed to have better rng than just rand()
|
||||
bool initialized;
|
||||
|
||||
// Service commands
|
||||
void initialize(u32 messagePointer);
|
||||
void generateRandomData(u32 messagePointer);
|
||||
|
||||
public:
|
||||
SSLService(Memory& mem) : mem(mem) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue