projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
t/io_uring: use the right check for when to wait
[fio.git]
/
t
/
gen-rand.c
diff --git
a/t/gen-rand.c
b/t/gen-rand.c
index 6c31f92598fc1686e05f905be24237b576b61b18..b050bd715a6c067ddc349392f9dc909cddeb9d19 100644
(file)
--- a/
t/gen-rand.c
+++ b/
t/gen-rand.c
@@
-1,17
+1,11
@@
+#include <math.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#include <inttypes.h>
-#include <assert.h>
-#include <math.h>
-#include <string.h>
#include "../lib/types.h"
#include "../lib/types.h"
-#include "../log.h"
-#include "../lib/lfsr.h"
-#include "../lib/axmap.h"
-#include "../smalloc.h"
-#include "../minmax.h"
#include "../lib/rand.h"
#include "../lib/rand.h"
+#include "../log.h"
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
@@
-40,7
+34,7
@@
int main(int argc, char *argv[])
init_rand(&s, false);
for (i = 0; i < nvalues; i++) {
init_rand(&s, false);
for (i = 0; i < nvalues; i++) {
- int v = rand
32
_between(&s, start, end);
+ int v = rand_between(&s, start, end);
buckets[v - start]++;
}
buckets[v - start]++;
}
@@
-63,6
+57,6
@@
int main(int argc, char *argv[])
}
printf("Passes=%lu, Fail=%lu\n", pass, fail);
}
printf("Passes=%lu, Fail=%lu\n", pass, fail);
-
+ free(buckets);
return 0;
}
return 0;
}