|
|
@ -29,8 +29,9 @@ |
|
|
|
#include <iostream> |
|
|
|
#include <assert.h> |
|
|
|
#include <queue> |
|
|
|
#include <random> |
|
|
|
#include <vector> |
|
|
|
#include <random> |
|
|
|
#include <boost/random/random_device.hpp> |
|
|
|
#include <libethash/util.h> |
|
|
|
#include <libethash/ethash.h> |
|
|
|
#include <libethash/internal.h> |
|
|
@ -470,7 +471,7 @@ void ethash_cl_miner::search(uint8_t const* header, uint64_t target, search_hook |
|
|
|
m_searchKernel.setArg(argPos + 2, ~0u); |
|
|
|
|
|
|
|
unsigned buf = 0; |
|
|
|
random_device engine; |
|
|
|
boost::random_device engine; |
|
|
|
uint64_t start_nonce = uniform_int_distribution<uint64_t>()(engine); |
|
|
|
for (;; start_nonce += m_globalWorkSize) |
|
|
|
{ |
|
|
|