From: Martin Quinson Date: Thu, 6 Feb 2020 13:33:00 +0000 (+0100) Subject: Ensure that I don't 'fix' it by accident in the future X-Git-Tag: v3.26~1018 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3eabfe66a9302f074789fc0deb03117b487de98a Ensure that I don't 'fix' it by accident in the future --- diff --git a/teshsuite/simdag/evaluate-get-route-time/evaluate-get-route-time.c b/teshsuite/simdag/evaluate-get-route-time/evaluate-get-route-time.c index ff86f3af60..6ce4fd946d 100644 --- a/teshsuite/simdag/evaluate-get-route-time/evaluate-get-route-time.c +++ b/teshsuite/simdag/evaluate-get-route-time/evaluate-get-route-time.c @@ -32,7 +32,7 @@ int main(int argc, char **argv) xbt_assert(host_count > 1); i = rand() % host_count; j = rand() % (host_count - 1); - if (j >= i) + if (j >= i) // '>=' is not a bug: j is uniform on host_count-1 values, and shifted on need to maintain uniform random j++; const_sg_host_t h1 = hosts[i];