From 8ab9e6d8da5195f0312f9fa60f541a6cd7b05ac1 Mon Sep 17 00:00:00 2001 From: fincs Date: Wed, 17 Oct 2018 17:17:33 +0200 Subject: [PATCH] Added support for RandomSeed homebrew ABI key --- source/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/main.c b/source/main.c index b4c442f..36b4db6 100644 --- a/source/main.c +++ b/source/main.c @@ -331,6 +331,7 @@ void loadNro(void) { EntryType_NextLoadPath, 0, {0, 0} }, { EntryType_LastLoadResult, 0, {0, 0} }, { EntryType_SyscallAvailableHint, 0, {0xffffffffffffffff, 0x1fc1fff0007ffff} }, + { EntryType_RandomSeed, 0, {0, 0} }, { EntryType_EndOfList, 0, {0, 0} } }; @@ -355,6 +356,9 @@ void loadNro(void) entries[5].Value[1] = (u64) &g_nextArgv[0]; // LastLoadResult entries[6].Value[0] = g_lastRet; + // RandomSeed + entries[8].Value[0] = randomGet64(); + entries[8].Value[1] = randomGet64(); u64 entrypoint = map_addr;