diff --git a/src/ringdht/eth/libdevcore/FixedHash.cpp b/src/ringdht/eth/libdevcore/FixedHash.cpp
index 51186e1fdf1059b06fcd97f6f0fe96f27746cadb..c7d24b529a11db9c04a780a1bf605a2f015c8cf4 100644
--- a/src/ringdht/eth/libdevcore/FixedHash.cpp
+++ b/src/ringdht/eth/libdevcore/FixedHash.cpp
@@ -20,6 +20,6 @@
 namespace dev
 {
 
-std::random_device s_fixedHashEngine;
+dht::crypto::random_device s_fixedHashEngine;
 
 }
diff --git a/src/ringdht/eth/libdevcore/FixedHash.h b/src/ringdht/eth/libdevcore/FixedHash.h
index aed5d9392d28a8fa112c793fdfc93e4882407302..3286c368c089e2669bb592f909d082f85d66a311 100644
--- a/src/ringdht/eth/libdevcore/FixedHash.h
+++ b/src/ringdht/eth/libdevcore/FixedHash.h
@@ -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