From 08d6367fdc602f549df23dbdf988acac7ec57df5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <>
Date: Sun, 10 Dec 2023 16:02:56 -0500
Subject: [PATCH] pht: move to std::random_device

---
 src/indexation/pht.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/indexation/pht.cpp b/src/indexation/pht.cpp
index dfa4a77e..a5b14c0d 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));
         }
-- 
GitLab