From 8006ac7ec051d356b6c52ed8e534c5ff8c4ae1d4 Mon Sep 17 00:00:00 2001
From: tevador <tevador@gmail.com>
Date: Sat, 6 Nov 2021 16:16:26 +0100
Subject: [PATCH] Fix native code generator using the wrong hash function

---
 src/tests/code-generator.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/code-generator.cpp b/src/tests/code-generator.cpp
index b151c3a..7912320 100644
--- a/src/tests/code-generator.cpp
+++ b/src/tests/code-generator.cpp
@@ -69,7 +69,7 @@ void generateNative(uint32_t nonce) {
 	uint8_t scratchpad[randomx::ScratchpadSize];
 	fillAes1Rx4<softAes>((void*)hash, randomx::ScratchpadSize, scratchpad);
 	alignas(16) randomx::Program prog;
-	fillAes1Rx4<softAes>((void*)hash, sizeof(prog), &prog);
+	fillAes4Rx4<softAes>((void*)hash, sizeof(prog), &prog);
 	std::cout << prog << std::endl;
 }