From fe586939f60f762e4f5e483fc5f4b0ba9a95f49e Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 13 Sep 2014 10:28:46 -0700 Subject: [PATCH] _ftime_s() was not available on Windows XP. And people still run XP. --- src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c b/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c index 5389eb82..ce1b3ebb 100644 --- a/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +++ b/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c @@ -67,7 +67,7 @@ sodium_hrtime(void) #ifdef _WIN32 struct _timeb tb; - _ftime_s(&tb); + _ftime(&tb); tv.tv_sec = (long) tb.time; tv.tv_usec = ((int) tb.millitm) * 1000; ret = 0;