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