projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7e74401
)
Remember to prime the random generator
author
Jens Axboe
<jens.axboe@oracle.com>
Thu, 25 Mar 2010 22:07:35 +0000
(23:07 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 25 Mar 2010 22:07:35 +0000
(23:07 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c
patch
|
blob
|
blame
|
history
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 "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