X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=init.c;h=065a71a58e1611d8388b2fc674d03ea966c139a3;hb=883e4841d5466955ad464ee3a6b37e009cfa80ef;hp=7166ea766d8a669bddf619dd105b3b8ce6b3f58d;hpb=ecfd2bb08cc87bc9a1b3d612258f1fdfb4d09698;p=fio.git diff --git a/init.c b/init.c index 7166ea76..065a71a5 100644 --- a/init.c +++ b/init.c @@ -936,12 +936,25 @@ static void init_rand_file_service(struct thread_data *td) } } +void td_fill_verify_state_seed(struct thread_data *td) +{ + bool use64; + + if (td->o.random_generator == FIO_RAND_GEN_TAUSWORTHE64) + use64 = 1; + else + use64 = 0; + + init_rand_seed(&td->verify_state, td->rand_seeds[FIO_RAND_VER_OFF], + use64); +} + static void td_fill_rand_seeds_internal(struct thread_data *td, bool use64) { int i; init_rand_seed(&td->bsrange_state, td->rand_seeds[FIO_RAND_BS_OFF], use64); - init_rand_seed(&td->verify_state, td->rand_seeds[FIO_RAND_VER_OFF], use64); + td_fill_verify_state_seed(td); init_rand_seed(&td->rwmix_state, td->rand_seeds[FIO_RAND_MIX_OFF], false); if (td->o.file_service_type == FIO_FSERVICE_RANDOM)