1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

make it compile

This commit is contained in:
Jeff Becker 2019-02-07 07:25:22 -05:00
parent cff6bc1c8d
commit d5caec719f
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -427,10 +427,9 @@ llarp_nodedb::select_random_hop(const llarp::RouterContact &prev,
size_t sz = entries.size();
if(sz < 3)
return false;
size_t tries = 5;
llarp_time_t now = llarp::time_now_ms();
if(!N)
return false;
llarp_time_t now = llarp::time_now_ms();
auto itr = entries.begin();
size_t pos = llarp::randint() % sz;