file: unionize lfsr/randommap
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index efbcea9eb15bb47dca4e0f802f85ad86197665de..23a9e4ada729efbc2a53bd9b3d4e12047be1d5c6 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -100,6 +100,8 @@ static int __get_next_rand_offset(struct thread_data *td, struct fio_file *f,
        } else {
                uint64_t off = 0;
 
+               assert(fio_file_lfsr(f));
+
                if (lfsr_next(&f->lfsr, &off))
                        return 1;