Explorar o código

Merge pull request #224 from tevador/pr-codegen1

Fix native code generator using the wrong hash function
hyc %!s(int64=4) %!d(string=hai) anos
pai
achega
1f7a09435b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/tests/code-generator.cpp

+ 1 - 1
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;
 }