You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I wanted to implement some randomness into the standard randomx algo and was surprised to find that I was able to skip the whole algo with some incredible hash speeds.
it's something like (in xmrig randomx.cpp):
void randomx_calculate_hash_next(randomx_vm* machine, uint64_t (&tempHash)[8], const void* nextInput, size_t nextInputSize, void* output) {
PROFILE_SCOPE(RandomX_hash);
/*machine->resetRoundingMode();
for (uint32_t chain = 0; chain < RandomX_CurrentConfig.ProgramCount - 1; ++chain) {
machine->run(&tempHash);
rx_blake2b_wrapper::run(tempHash, sizeof(tempHash), machine->getRegisterFile(), sizeof(randomx::RegisterFile));
}
machine->run(&tempHash);*/
getentropy(tempHash, sizeof tempHash);
// Finish current hash and fill the scratchpad for the next hash at the same time
// rx_blake2b_wrapper::run(tempHash, sizeof(tempHash), nextInput, nextInputSize);
machine->hashAndFill(output, tempHash);
}
But if i connect to minexmr.com it says invalid share straight up.
Don't know if this exploit.
The text was updated successfully, but these errors were encountered:
So I wanted to implement some randomness into the standard randomx algo and was surprised to find that I was able to skip the whole algo with some incredible hash speeds.
it's something like (in xmrig randomx.cpp):
But if i connect to minexmr.com it says invalid share straight up.
Don't know if this exploit.
The text was updated successfully, but these errors were encountered: