X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=t%2Fgen-rand.c;h=c379053db61718fca125f0113137a3ca20cbea9c;hp=ace814fa7dbcfe83a77d7163fa0ab7018d28249f;hb=3d2d14bcb844e72809192311369a642c5d415472;hpb=ea4cc0ea343ec355fafda1104623d3bdd306a5b6 diff --git a/t/gen-rand.c b/t/gen-rand.c index ace814fa..c379053d 100644 --- a/t/gen-rand.c +++ b/t/gen-rand.c @@ -1,17 +1,11 @@ +#include +#include #include #include -#include -#include -#include -#include #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 "../log.h" 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++) { - int v = rand_between(&s, start, end); + int v = rand32_between(&s, start, end); buckets[v - start]++; } @@ -63,6 +57,6 @@ int main(int argc, char *argv[]) } printf("Passes=%lu, Fail=%lu\n", pass, fail); - + free(buckets); return 0; }