#1072 Fixed RandomX seed re-initialization.
This commit is contained in:
parent
02c03b0465
commit
39948484bd
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
{
|
{
|
||||||
if (!m_vm) {
|
|
||||||
RxDataset *dataset = Rx::dataset(m_job.currentJob().seedHash(), m_job.currentJob().algorithm());
|
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);
|
m_vm = new RxVm(dataset, m_memory->scratchpad(), !m_hwAES);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue