prometheus-node-exporter-lua: add dawn exporter
[feed/packages.git] / utils / fio / patches / 010-rand.patch
1 --- a/t/io_uring.c
2 +++ b/t/io_uring.c
3 @@ -63,7 +63,6 @@ struct file {
4 struct submitter {
5 pthread_t thread;
6 int ring_fd;
7 - struct drand48_data rand;
8 struct io_sq_ring sq_ring;
9 struct io_uring_sqe *sqes;
10 struct io_cq_ring cq_ring;
11 @@ -170,7 +169,7 @@ static void init_io(struct submitter *s, unsigned index)
12 }
13 f->pending_ios++;
14
15 - lrand48_r(&s->rand, &r);
16 + r = lrand48();
17 offset = (r % (f->max_blocks - 1)) * BS;
18
19 if (register_files) {
20 @@ -286,7 +285,7 @@ static void *submitter_fn(void *data)
21
22 printf("submitter=%d\n", gettid());
23
24 - srand48_r(pthread_self(), &s->rand);
25 + srand48(pthread_self());
26
27 prepped = 0;
28 do {