Skip to content

Commit

Permalink
Merge pull request #224 from tevador/pr-codegen1
Browse files Browse the repository at this point in the history
Fix native code generator using the wrong hash function
  • Loading branch information
hyc authored Nov 6, 2021
2 parents 6bc2c2a + 8006ac7 commit 1f7a094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/code-generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1f7a094

Please sign in to comment.