*/
static void random_lookup(node_t node)
{
- //int id = 1337; // TODO pick a pseudorandom id
- if(node->stream == NULL)
+
+ int id = 1337;
+ find_successor(node, id);
+
+ /*** Random lookup disabled for tesh examples ***/
+ /*if(node->stream == NULL)
node->stream = RngStream_CreateStream("");
int random_index = RngStream_RandInt (node->stream, 0, nb_bits - 1);
int random_id = node->fingers[random_index].id;
XBT_DEBUG("Making a lookup request for id %d", random_id);
int res = find_successor(node, random_id);
- XBT_DEBUG("The successor of node %d is %d", random_id, res);
+ XBT_DEBUG("The successor of node %d is %d", random_id, res);*/
+
}
/**
> [ 987.000000] (6:node@c-5.me) 2486268 | 10874876
> [ 987.000000] (6:node@c-5.me) Predecessor: 10004760
> [1196.000000] (0:@) Messages created: 1827
-> [1196.000000] (0:@) Simulated time: 1196
-
+> [1196.000000] (0:@) Simulated time: 1196
\ No newline at end of file