Reseed random generator for loop/time based runs
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index f699951dcf58697f87922be056bfe99191e82f96..ad2282d7516fe7fc0033b3bc721a12b16d370fe1 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -876,6 +876,11 @@ static void reset_io_counters(struct thread_data *td)
         */
        if (td->o.time_based || td->o.loops)
                td->nr_done_files = 0;
         */
        if (td->o.time_based || td->o.loops)
                td->nr_done_files = 0;
+
+       /*
+        * Set the same seed to get repeatable runs
+        */
+       td_fill_rand_seeds(td);
 }
 
 void reset_all_stats(struct thread_data *td)
 }
 
 void reset_all_stats(struct thread_data *td)