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