X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=filesetup.c;h=9d0337578d2266355b8ff478c5153cff88c26d77;hb=cdf2f9e31efab8dc45215dd4e6ecb3de9149b4a9;hp=76b3f9359bad79b44b21d17a8edb74f869b15b7a;hpb=6cc78de0059146ed2344438b16ffff28fed42915;p=fio.git diff --git a/filesetup.c b/filesetup.c index 76b3f935..9d033757 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1319,11 +1319,11 @@ static void __init_rand_distribution(struct thread_data *td, struct fio_file *f) seed = td->rand_seeds[4]; if (td->o.random_distribution == FIO_RAND_DIST_ZIPF) - zipf_init(&f->zipf, nranges, td->o.zipf_theta.u.f, seed); + zipf_init(&f->zipf, nranges, td->o.zipf_theta.u.f, td->o.random_center.u.f, seed); else if (td->o.random_distribution == FIO_RAND_DIST_PARETO) - pareto_init(&f->zipf, nranges, td->o.pareto_h.u.f, seed); + pareto_init(&f->zipf, nranges, td->o.pareto_h.u.f, td->o.random_center.u.f, seed); else if (td->o.random_distribution == FIO_RAND_DIST_GAUSS) - gauss_init(&f->gauss, nranges, td->o.gauss_dev.u.f, seed); + gauss_init(&f->gauss, nranges, td->o.gauss_dev.u.f, td->o.random_center.u.f, seed); } static bool init_rand_distribution(struct thread_data *td)