diff --git a/libethash-cl/CMakeLists.txt b/libethash-cl/CMakeLists.txt index 2d4a0d8e5..7de2d6971 100644 --- a/libethash-cl/CMakeLists.txt +++ b/libethash-cl/CMakeLists.txt @@ -24,7 +24,7 @@ include_directories(${Boost_INCLUDE_DIRS}) include_directories(..) add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS}) target_include_directories(${EXECUTABLE} PUBLIC ${OpenCL_INCLUDE_DIR}) -target_link_libraries(${EXECUTABLE} ${OpenCL_LIBRARIES} ethash ${Boost_RANDOM_LIBRARIES} ${Boost_SYSTEM_LIBRARIES}) +target_link_libraries(${EXECUTABLE} ${OpenCL_LIBRARIES} ethash) install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} ) diff --git a/libethash-cl/ethash_cl_miner.cpp b/libethash-cl/ethash_cl_miner.cpp index fa1dda8eb..587c92598 100644 --- a/libethash-cl/ethash_cl_miner.cpp +++ b/libethash-cl/ethash_cl_miner.cpp @@ -31,8 +31,7 @@ #include #include #include -#include -#include +#include #include #include #include @@ -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()(engine); + random_device engine; + uint64_t start_nonce = uniform_int_distribution()(engine); for (;; start_nonce += m_globalWorkSize) { auto t = chrono::high_resolution_clock::now();