| 1141 | } |
| 1142 | |
| 1143 | std::shared_ptr<const RouterInfo> NetDb::GetRandomRouter () const |
| 1144 | { |
| 1145 | return GetRandomRouter ( |
| 1146 | [](std::shared_ptr<const RouterInfo> router)->bool |
| 1147 | { |
| 1148 | return !router->IsHidden (); |
| 1149 | }); |
| 1150 | } |
| 1151 | |
| 1152 | std::shared_ptr<const RouterInfo> NetDb::GetRandomRouter (std::shared_ptr<const RouterInfo> compatibleWith, |
| 1153 | bool reverse, bool endpoint, bool clientTunnel) const |
no test coverage detected