diff --git a/src/indexation/pht.cpp b/src/indexation/pht.cpp
index dfa4a77e1212aff132e8cf891465391bf173b901..a5b14c0d7e8decd66e552fea724c9609cf4f07fc 100644
--- a/src/indexation/pht.cpp
+++ b/src/indexation/pht.cpp
@@ -316,7 +316,7 @@ void Pht::updateCanary(Prefix p) {
     dht_->put(p.hash(), std::move(canary_value),
         [=](bool){
             static std::bernoulli_distribution d(0.5);
-            crypto::random_device rd;
+            std::random_device rd;
             if (p.size_ and d(rd))
                 updateCanary(p.getPrefix(-1));
         }