diff options
author | fanquake <fanquake@gmail.com> | 2022-12-30 12:25:50 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-02-17 15:01:50 +0000 |
commit | 621cfb77227b5a240d66547947f73130f0c51f44 (patch) | |
tree | a6b0513b57f1871fa9fde0fc812ae101154261f1 /src/random.cpp | |
parent | 75ec6275e6780b9ed18e271e6b24bef46d1af96d (diff) |
random: consolidate WIN32 #ifdefs
Order includes
Remove // for xyz comments
Diffstat (limited to 'src/random.cpp')
-rw-r--r-- | src/random.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/random.cpp b/src/random.cpp index 9fd39e8950..432592589a 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -8,23 +8,22 @@ #include <compat/cpuid.h> #include <crypto/sha256.h> #include <crypto/sha512.h> -#include <support/cleanse.h> -#ifdef WIN32 -#include <windows.h> -#include <wincrypt.h> -#endif #include <logging.h> #include <randomenv.h> -#include <support/allocators/secure.h> #include <span.h> -#include <sync.h> // for Mutex -#include <util/time.h> // for GetTimeMicros() +#include <support/allocators/secure.h> +#include <support/cleanse.h> +#include <sync.h> +#include <util/time.h> #include <cmath> #include <cstdlib> #include <thread> -#ifndef WIN32 +#ifdef WIN32 +#include <windows.h> +#include <wincrypt.h> +#else #include <fcntl.h> #include <sys/time.h> #endif |