Skip to content

Commit

Permalink
display randomx seed in miner
Browse files Browse the repository at this point in the history
  • Loading branch information
swordlet authored Apr 23, 2021
1 parent 423766c commit 344092e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RandomX_Miner/XDagCore/XTaskProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ void XTaskProcessor::SwitchTask()
exit(-1);
}
}
std::cout << "SEED:" << std::hex << newKey[3]<< std::hex << newKey[2]<< std::hex << newKey[1]<< std::hex << newKey[0] << std::endl;
randomx_init_cache(_cache, newKey, sizeof(xdag_hash_t));
uint32_t datasetItemCount = randomx_dataset_item_count();
InitDataset(_dataset, _cache, 4, datasetItemCount);
Expand Down

0 comments on commit 344092e

Please sign in to comment.