Commit 66691ef5 authored by Vladimír Čunát's avatar Vladimír Čunát

reorder_RR(): don't rotate based on request ID

As Marek noted, the option is meant to fix bad stub-resolvers,
and those may not put good randomness into the ID.
parent 1ab5d201
......@@ -179,9 +179,7 @@ static struct kr_query *kr_rplan_push_query(struct kr_rplan *rplan,
qry->timestamp_mono = kr_now();
qry->creation_time_mono = parent ? parent->creation_time_mono : qry->timestamp_mono;
kr_zonecut_init(&qry->zone_cut, (const uint8_t *)"", rplan->pool);
qry->reorder = qry->flags.REORDER_RR
? knot_wire_get_id(rplan->request->answer->wire)
: 0;
qry->reorder = qry->flags.REORDER_RR ? kr_rand_uint(0) : 0;
/* When forwarding, keep the nameserver addresses. */
if (parent && parent->flags.FORWARD && qry->flags.FORWARD) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment