xbt_os_timer_t timer = xbt_os_timer_new();
simgrid::s4u::Engine e(&argc, argv);
e.load_platform(argv[1]);
xbt_os_timer_t timer = xbt_os_timer_new();
simgrid::s4u::Engine e(&argc, argv);
e.load_platform(argv[1]);
/* Take random i and j, with i != j */
xbt_assert(host_count > 1);
/* Take random i and j, with i != j */
xbt_assert(host_count > 1);
- i = rand() % host_count;
- j = rand() % (host_count - 1);
+ int i = simgrid::xbt::random::uniform_int(0, host_count - 1);
+ int j = simgrid::xbt::random::uniform_int(0, host_count - 2);