re-seeding random generator in this way means that random patterns will
precisely repeat between iterations. if rand_repeatable is set, this is
desirable, otherwise it may produce unexpected IO patterns in random IO
testing.
Signed-off-by: Jens Axboe <axboe@fb.com>
- * Set the same seed to get repeatable runs
+ * Re-Seed random number generator if rand_repeatable is true
- td_fill_rand_seeds(td);
+ if (td->o.rand_repeatable)
+ td_fill_rand_seeds(td);
}
void reset_all_stats(struct thread_data *td)
}
void reset_all_stats(struct thread_data *td)