X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=lib%2Frand.h;h=24fac23cfec0856b409405e69a313dc7e873be33;hp=49773b0d9b6bec616744fe7bc91c548f7b80aa42;hb=de4096e8682a064ed9125af7ac30a3fe4021167b;hpb=37dd2bc0fbea637f248151b97de88add9e1a026e;ds=sidebyside diff --git a/lib/rand.h b/lib/rand.h index 49773b0d..24fac23c 100644 --- a/lib/rand.h +++ b/lib/rand.h @@ -2,6 +2,7 @@ #define FIO_RAND_H #include +#include "types.h" #include "../arch/arch.h" #define FRAND32_MAX (-1U) @@ -128,8 +129,8 @@ static inline int rand_between(struct frand_state *state, int start, int end) return start + (int) ((double)end * (r / (rand_max(state) + 1.0))); } -extern void init_rand(struct frand_state *, int); -extern void init_rand_seed(struct frand_state *, unsigned int seed, int); +extern void init_rand(struct frand_state *, bool); +extern void init_rand_seed(struct frand_state *, unsigned int seed, bool); extern void __fill_random_buf(void *buf, unsigned int len, unsigned long seed); extern unsigned long fill_random_buf(struct frand_state *, void *buf, unsigned int len); extern void __fill_random_buf_percentage(unsigned long, void *, unsigned int, unsigned int, unsigned int, char *, unsigned int);