X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=lib%2Frand.c;h=46ffe4fb0c6b9108685254cbe7f110983eb27088;hb=f88817479014b87bfed3a20f9fe7dae0efb33dee;hp=1b661a86946bd75a06c2048022422487b00f17ea;hpb=2cac8fcb5ecaf5de549c36ee1cc2db75f00f8ff4;p=fio.git diff --git a/lib/rand.c b/lib/rand.c index 1b661a86..46ffe4fb 100644 --- a/lib/rand.c +++ b/lib/rand.c @@ -34,9 +34,8 @@ */ #include -#include #include "rand.h" -#include "lib/pattern.h" +#include "pattern.h" #include "../hash.h" int arch_random; @@ -76,7 +75,7 @@ static void __init_rand64(struct taus258_state *state, uint64_t seed) __rand64(state); } -void init_rand(struct frand_state *state, int use64) +void init_rand(struct frand_state *state, bool use64) { state->use64 = use64; @@ -86,7 +85,7 @@ void init_rand(struct frand_state *state, int use64) __init_rand64(&state->state64, 1); } -void init_rand_seed(struct frand_state *state, unsigned int seed, int use64) +void init_rand_seed(struct frand_state *state, unsigned int seed, bool use64) { state->use64 = use64;