Re-seed random generator when a file is reset
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index 3de04ef0eb91fe25d6561562f931ebfa7fb311f7..1658fb20896e10490161e4b71f3d2c362ede4d53 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -223,7 +223,7 @@ static int get_next_rand_block(struct thread_data *td, struct fio_file *f,
                return 0;
 
        if (td->o.time_based) {
-               fio_file_reset(f);
+               fio_file_reset(td, f);
                if (!get_next_rand_offset(td, f, ddir, b))
                        return 0;
        }