Home
last modified time | relevance | path

Searched refs:rand_trial (Results 1 – 2 of 2) sorted by relevance

/dports/devel/opendht/opendht-1.10.1/src/
H A Ddht.cpp1759 std::bernoulli_distribution rand_trial(1./8.); in neighbourhoodMaintenance() local
1761 if (std::next(q) != list.end() && (q->nodes.empty() || rand_trial(rd))) in neighbourhoodMaintenance()
1763 if (b != list.begin() && (q->nodes.empty() || rand_trial(rd))) { in neighbourhoodMaintenance()
1784 std::bernoulli_distribution rand_trial(1./8.); in bucketMaintenance() local
1798 if (std::next(b) != list.end() && (q->nodes.empty() || rand_trial(rd))) in bucketMaintenance()
1800 if (b != list.begin() && (q->nodes.empty() || rand_trial(rd))) { in bucketMaintenance()
/dports/devel/py-opendht/opendht-1.10.1/src/
H A Ddht.cpp1759 std::bernoulli_distribution rand_trial(1./8.); in neighbourhoodMaintenance() local
1761 if (std::next(q) != list.end() && (q->nodes.empty() || rand_trial(rd))) in neighbourhoodMaintenance()
1763 if (b != list.begin() && (q->nodes.empty() || rand_trial(rd))) { in neighbourhoodMaintenance()
1784 std::bernoulli_distribution rand_trial(1./8.); in bucketMaintenance() local
1798 if (std::next(b) != list.end() && (q->nodes.empty() || rand_trial(rd))) in bucketMaintenance()
1800 if (b != list.begin() && (q->nodes.empty() || rand_trial(rd))) { in bucketMaintenance()