projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rand: use bools
[fio.git]
/
lib
/
rand.c
diff --git
a/lib/rand.c
b/lib/rand.c
index 1b661a86946bd75a06c2048022422487b00f17ea..9c3e0d6a39e181149ad04ac5c36f7220d115de95 100644
(file)
--- a/
lib/rand.c
+++ b/
lib/rand.c
@@
-76,7
+76,7
@@
static void __init_rand64(struct taus258_state *state, uint64_t seed)
__rand64(state);
}
__rand64(state);
}
-void init_rand(struct frand_state *state,
int
use64)
+void init_rand(struct frand_state *state,
bool
use64)
{
state->use64 = use64;
{
state->use64 = use64;
@@
-86,7
+86,7
@@
void init_rand(struct frand_state *state, int use64)
__init_rand64(&state->state64, 1);
}
__init_rand64(&state->state64, 1);
}
-void init_rand_seed(struct frand_state *state, unsigned int seed,
int
use64)
+void init_rand_seed(struct frand_state *state, unsigned int seed,
bool
use64)
{
state->use64 = use64;
{
state->use64 = use64;