summaryrefslogtreecommitdiff
path: root/lib/lfsr.h
diff options
context:
space:
mode:
authorMing-Hung Tsai <mingnus@gmail.com>2019-04-17 12:25:10 +0800
committerMing-Hung Tsai <mingnus@gmail.com>2019-04-17 15:34:19 +0800
commit9781c080385364d24ac18a95544484864a27611a (patch)
tree360c2a9e624398c0473f123247fa22da48943a3f /lib/lfsr.h
parentef32da643574162c2b1aae67af38ecffb43db036 (diff)
downloadfio-9781c080385364d24ac18a95544484864a27611a.tar.gz
fio-9781c080385364d24ac18a95544484864a27611a.tar.bz2
rand: fix truncated rand_seed on Windows
The long data type is 32-bit on LLP64 platforms
Diffstat (limited to 'lib/lfsr.h')
-rw-r--r--lib/lfsr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lfsr.h b/lib/lfsr.h
index c2d55693..95bc07fd 100644
--- a/lib/lfsr.h
+++ b/lib/lfsr.h
@@ -24,7 +24,7 @@ struct fio_lfsr {
int lfsr_next(struct fio_lfsr *fl, uint64_t *off);
int lfsr_init(struct fio_lfsr *fl, uint64_t size,
- unsigned long seed, unsigned int spin);
-int lfsr_reset(struct fio_lfsr *fl, unsigned long seed);
+ uint64_t seed, unsigned int spin);
+int lfsr_reset(struct fio_lfsr *fl, uint64_t seed);
#endif