#1072 Fixed RandomX seed re-initialization.
This commit is contained in:
parent
02c03b0465
commit
39948484bd
@ -81,8 +81,9 @@ xmrig::CpuWorker<N>::~CpuWorker()
|
||||
template<size_t N>
|
||||
void xmrig::CpuWorker<N>::allocateRandomX_VM()
|
||||
{
|
||||
if (!m_vm) {
|
||||
RxDataset *dataset = Rx::dataset(m_job.currentJob().seedHash(), m_job.currentJob().algorithm());
|
||||
|
||||
if (!m_vm) {
|
||||
m_vm = new RxVm(dataset, m_memory->scratchpad(), !m_hwAES);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user