From 3eabfe66a9302f074789fc0deb03117b487de98a Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 6 Feb 2020 14:33:00 +0100 Subject: [PATCH] Ensure that I don't 'fix' it by accident in the future --- .../simdag/evaluate-get-route-time/evaluate-get-route-time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.20.1