diff --git a/src/crypto/randomx/virtual_machine.cpp b/src/crypto/randomx/virtual_machine.cpp index 6560dc950..c216de697 100644 --- a/src/crypto/randomx/virtual_machine.cpp +++ b/src/crypto/randomx/virtual_machine.cpp @@ -121,7 +121,7 @@ namespace randomx { template void VmBase::generateProgram(void* seed) { - fillAes4Rx4(seed, sizeof(program), &program); + fillAes4Rx4(seed, 128 + RandomX_CurrentConfig.ProgramSize * 8, &program); } template class VmBase;