From: Jens Axboe Date: Thu, 25 Mar 2010 22:07:35 +0000 (+0100) Subject: Remember to prime the random generator X-Git-Tag: fio-1.39-rc1~18 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=d54a144d8ce8531659f730f99eb7d6873c9d159c Remember to prime the random generator Signed-off-by: Jens Axboe --- 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