summaryrefslogtreecommitdiff
path: root/os
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 /os
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 'os')
-rw-r--r--os/os-windows.h2
-rw-r--r--os/os.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/os/os-windows.h b/os/os-windows.h
index ef955dc3..dc958f5c 100644
--- a/os/os-windows.h
+++ b/os/os-windows.h
@@ -167,7 +167,7 @@ static inline int gettid(void)
return GetCurrentThreadId();
}
-static inline int init_random_seeds(unsigned long *rand_seeds, int size)
+static inline int init_random_seeds(uint64_t *rand_seeds, int size)
{
HCRYPTPROV hCryptProv;
diff --git a/os/os.h b/os/os.h
index 36b6bb2e..756ece4b 100644
--- a/os/os.h
+++ b/os/os.h
@@ -323,7 +323,7 @@ static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
#endif
#ifdef FIO_USE_GENERIC_INIT_RANDOM_STATE
-static inline int init_random_seeds(unsigned long *rand_seeds, int size)
+static inline int init_random_seeds(uint64_t *rand_seeds, int size)
{
int fd;