Ensure that lfsr_init() is always called
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/filesetup.c b/filesetup.c
index e7f5f1f..b70bd45 100644
--- a/filesetup.c
+++ b/filesetup.c
@@ -911,7 +911,7 @@
if (init_rand_distribution(td))
return 0;
- if (td->o.norandommap || !td_random(td))
+ if (!td_random(td))
return 0;
for_each_file(td, f, i) {
@@ -920,7 +920,7 @@
if (td->o.random_generator == FIO_RAND_GEN_LFSR) {
if (!lfsr_init(&f->lfsr, blocks))
continue;
- } else {
+ } else if (!td->o.norandommap) {
f->io_bitmap = bitmap_new(blocks);
if (f->io_bitmap)
continue;