Remember to prime the random generator
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index dfda268712919a37c5f8aabf30b852bfbf3589ca..03dc6cc8871319b786a66d854371320be4208728 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -41,6 +41,7 @@
 #include "diskutil.h"
 #include "cgroup.h"
 #include "profile.h"
 #include "diskutil.h"
 #include "cgroup.h"
 #include "profile.h"
+#include "lib/rand.h"
 
 unsigned long page_mask;
 unsigned long page_size;
 
 unsigned long page_mask;
 unsigned long page_size;
@@ -1636,6 +1637,7 @@ int main(int argc, char *argv[])
        long ps;
 
        sinit();
        long ps;
 
        sinit();
+       init_rand(&__fio_rand_state);
 
        /*
         * We need locale for number printing, if it isn't set then just
 
        /*
         * We need locale for number printing, if it isn't set then just