From 0bc622b3d5b2df9dcbf209321482c358defe628a Mon Sep 17 00:00:00 2001 From: Pk11 Date: Tue, 5 Oct 2021 00:30:37 -0500 Subject: [PATCH] Fix NAND ROM dumping yes. it was literally the 'random' number. --- arm9/source/read_card.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arm9/source/read_card.c b/arm9/source/read_card.c index c6dc0a3..0689d8a 100644 --- a/arm9/source/read_card.c +++ b/arm9/source/read_card.c @@ -72,8 +72,7 @@ static u32 secureArea[CARD_SECURE_AREA_SIZE/sizeof(u32)] = {0}; static const u8 cardSeedBytes[] = {0xE8, 0x4D, 0x5A, 0xB1, 0x17, 0x8F, 0x99, 0xD5}; static u32 getRandomNumber(void) { - return 4; // chosen by fair dice roll. - // guaranteed to be random. + return rand(); } static void decryptSecureArea (u32 gameCode, u32* secureArea, int iCardDevice)