X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=lib%2Frand.h;h=d62ebe5f7ecb95005561c5021df45ab92a06a1d1;hp=f80c111a53f9083d19ad0c972920732cb7a51bef;hb=ef4ad58a0ebcfe44611b787ba18503f1c6db9247;hpb=2615cc4b28e7d0e436a625dff92e6a71ccc6c49b diff --git a/lib/rand.h b/lib/rand.h index f80c111a..d62ebe5f 100644 --- a/lib/rand.h +++ b/lib/rand.h @@ -7,8 +7,6 @@ struct frand_state { unsigned int s1, s2, s3; }; -extern struct frand_state __fio_rand_state; - static inline unsigned int __rand(struct frand_state *state) { #define TAUSWORTHE(s,a,b,c,d) ((s&c)<>b) @@ -23,6 +21,7 @@ static inline unsigned int __rand(struct frand_state *state) extern void init_rand(struct frand_state *); extern void init_rand_seed(struct frand_state *, unsigned int seed); extern void __fill_random_buf(void *buf, unsigned int len, unsigned long seed); -extern unsigned long fill_random_buf(void *buf, unsigned int len); +extern unsigned long fill_random_buf(struct frand_state *, void *buf, unsigned int len); +extern unsigned long fill_random_buf_percentage(struct frand_state *, void *buf, unsigned int percentage, unsigned int segment, unsigned int len); #endif