A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure that I don't 'fix' it by accident in the future
[simgrid.git]
/
teshsuite
/
simdag
/
evaluate-get-route-time
/
evaluate-get-route-time.c
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
ff86f3a
..
6ce4fd9
100644
(file)
--- 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);
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];
j++;
const_sg_host_t h1 = hosts[i];