#define DEF_CREATE (1)
#define DEF_INVALIDATE (1)
#define DEF_SYNCIO (0)
+#define DEF_RANDSEED (0xb1899bedUL)
#define ALIGN(buf) (char *) (((unsigned long) (buf) + MASK) & ~(MASK))
static int init_random_state(struct thread_data *td)
{
- unsigned long seed = 123;
+ unsigned long seed;
if (td->sequential)
return 0;
}
close(fd);
- }
+ } else
+ seed = DEF_RANDSEED;
srand48_r(seed, &td->random_state);
return 0;