projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Switch the latter part of the offset generation to __rand() too
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index e9ce37ef6804670371d86e4833181c6cbc6abc64..c672993414b480d33e5e4224ab84e727249e81e6 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-210,7
+210,10
@@
static int get_next_rand_offset(struct thread_data *td, struct fio_file *f,
if (!get_next_free_block(td, f, ddir, b))
goto ret;
- r = os_random_long(&td->random_state);
+ if (td->o.use_os_rand)
+ r = os_random_long(&td->random_state);
+ else
+ r = __rand(&td->__random_state);
} while (--loops);
/*