path: root/lib
diff options
authorJens Axboe <>2021-11-19 10:40:20 -0700
committerJens Axboe <>2021-11-19 10:40:20 -0700
commit9eff5320c9f4e4ce19c10f87d9548cb5098f62be (patch)
tree377782f91c118915d6c1433f535b717157f6a715 /lib
parent0a852a50c315776de0b43185e30576f15a420a24 (diff)
t/io_uring: use internal random generator
Instead of using lrand48_r, use the internal fio random number generator. Signed-off-by: Jens Axboe <>
Diffstat (limited to 'lib')
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/rand.c b/lib/rand.c
index e74da609..6e893e80 100644
--- a/lib/rand.c
+++ b/lib/rand.c
@@ -59,7 +59,7 @@ static void __init_rand32(struct taus88_state *state, unsigned int seed)
-static void __init_rand64(struct taus258_state *state, uint64_t seed)
+void __init_rand64(struct taus258_state *state, uint64_t seed)
int cranks = 6;
diff --git a/lib/rand.h b/lib/rand.h
index a8060045..2b4be788 100644
--- a/lib/rand.h
+++ b/lib/rand.h
@@ -162,6 +162,7 @@ static inline uint64_t __get_next_seed(struct frand_state *fs)
extern void init_rand(struct frand_state *, bool);
extern void init_rand_seed(struct frand_state *, uint64_t seed, bool);
+void __init_rand64(struct taus258_state *state, uint64_t seed);
extern void __fill_random_buf(void *buf, unsigned int len, uint64_t seed);
extern uint64_t fill_random_buf(struct frand_state *, void *buf, unsigned int len);
extern void __fill_random_buf_percentage(uint64_t, void *, unsigned int, unsigned int, unsigned int, char *, unsigned int);