mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 07:55:04 -05:00
#1072 Fixed RandomX seed re-initialization.
This commit is contained in:
@@ -81,8 +81,9 @@ xmrig::CpuWorker<N>::~CpuWorker()
|
|||||||
template<size_t N>
|
template<size_t N>
|
||||||
void xmrig::CpuWorker<N>::allocateRandomX_VM()
|
void xmrig::CpuWorker<N>::allocateRandomX_VM()
|
||||||
{
|
{
|
||||||
|
RxDataset *dataset = Rx::dataset(m_job.currentJob().seedHash(), m_job.currentJob().algorithm());
|
||||||
|
|
||||||
if (!m_vm) {
|
if (!m_vm) {
|
||||||
RxDataset *dataset = Rx::dataset(m_job.currentJob().seedHash(), m_job.currentJob().algorithm());
|
|
||||||
m_vm = new RxVm(dataset, m_memory->scratchpad(), !m_hwAES);
|
m_vm = new RxVm(dataset, m_memory->scratchpad(), !m_hwAES);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user