Skip to content
Snippets Groups Projects
Commit c0f33bab authored by Adrien Béraud's avatar Adrien Béraud Committed by Olivier SOLDANO
Browse files

eth: use dht random_device


Use random_device from OpenDHT to
profit of the fallback on MinGW.

Change-Id: I00d0221d30c298f4342950a404fc2980e702e10b
Reviewed-by: default avatarOlivier Soldano <olivier.soldano@savoirfairelinux.com>
parent 09c3f289
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,6 @@
namespace dev
{
std::random_device s_fixedHashEngine;
dht::crypto::random_device s_fixedHashEngine;
}
......@@ -28,6 +28,8 @@
#include <algorithm>
#include <random>
#include <sstream>
#include <opendht/rng.h>
#include "CommonData.h"
namespace dev
......@@ -37,7 +39,7 @@ namespace dev
template <unsigned N> struct StaticLog2 { enum { result = 1 + StaticLog2<N/2>::result }; };
template <> struct StaticLog2<1> { enum { result = 0 }; };
extern std::random_device s_fixedHashEngine;
extern dht::crypto::random_device s_fixedHashEngine;
/// Fixed-size raw-byte array container type, with an API optimised for storing hashes.
/// Transparently converts to/from the corresponding arithmetic type; this will
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment