filesetup: ensure to setup random generator properly
[fio.git] / filesetup.c
index 7fe2ebd42406e9d93cbee838c983f4fc3ab815d1..ed3646a4bbe75e598e556970084bcb328c30fa3e 100644 (file)
@@ -1287,7 +1287,9 @@ static bool init_rand_distribution(struct thread_data *td)
        unsigned int i;
        int state;
 
-       if (td->o.random_distribution == FIO_RAND_DIST_RANDOM)
+       if (td->o.random_distribution == FIO_RAND_DIST_RANDOM ||
+           td->o.random_distribution == FIO_RAND_DIST_ZONED ||
+           td->o.random_distribution == FIO_RAND_DIST_ZONED_ABS)
                return false;
 
        state = td_bump_runstate(td, TD_SETTING_UP);