Not available on all platforms.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
struct submitter {
pthread_t thread;
int ring_fd;
struct submitter {
pthread_t thread;
int ring_fd;
- struct drand48_data rand;
struct io_sq_ring sq_ring;
struct io_uring_sqe *sqes;
struct io_cq_ring cq_ring;
struct io_sq_ring sq_ring;
struct io_uring_sqe *sqes;
struct io_cq_ring cq_ring;
- lrand48_r(&s->rand, &r);
offset = (r % (f->max_blocks - 1)) * BS;
if (register_files) {
offset = (r % (f->max_blocks - 1)) * BS;
if (register_files) {
printf("submitter=%d\n", gettid());
printf("submitter=%d\n", gettid());
- srand48_r(pthread_self(), &s->rand);
+ srand48(pthread_self());