From d54a144d8ce8531659f730f99eb7d6873c9d159c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 25 Mar 2010 23:07:35 +0100 Subject: [PATCH] Remember to prime the random generator Signed-off-by: Jens Axboe --- fio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fio.c b/fio.c index dfda2687..03dc6cc8 100644 --- a/fio.c +++ b/fio.c @@ -41,6 +41,7 @@ #include "diskutil.h" #include "cgroup.h" #include "profile.h" +#include "lib/rand.h" unsigned long page_mask; unsigned long page_size; @@ -1636,6 +1637,7 @@ int main(int argc, char *argv[]) long ps; sinit(); + init_rand(&__fio_rand_state); /* * We need locale for number printing, if it isn't set then just -- 2.25.1