diff options
author | Simon Warta <[email protected]> | 2018-05-07 23:42:35 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2018-05-07 23:42:35 +0200 |
commit | 9a0e2bd88458e176abb983c742a7156aaad0909a (patch) | |
tree | c2151d882754aad3dc9ab7cc62123a236df893ac /src/lib | |
parent | 46460afb53830373b0187fbc73ce6a1650a110da (diff) |
Rename RtlGenRandom_f -> RtlGenRandom_fptr
because this is a function pointer, not a function
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/rng/system_rng/system_rng.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/rng/system_rng/system_rng.cpp b/src/lib/rng/system_rng/system_rng.cpp index 2a543aa8e..78d258bb4 100644 --- a/src/lib/rng/system_rng/system_rng.cpp +++ b/src/lib/rng/system_rng/system_rng.cpp @@ -36,7 +36,7 @@ class System_RNG_Impl final : public RandomNumberGenerator System_RNG_Impl() : m_advapi("advapi32.dll") { // This throws if the function is not found - m_rtlgenrandom = m_advapi.resolve<RtlGenRandom_f>("SystemFunction036"); + m_rtlgenrandom = m_advapi.resolve<RtlGenRandom_fptr>("SystemFunction036"); } void randomize(uint8_t buf[], size_t len) override @@ -51,10 +51,10 @@ class System_RNG_Impl final : public RandomNumberGenerator void clear() override { /* not possible */ } std::string name() const override { return "RtlGenRandom"; } private: - using RtlGenRandom_f = BOOLEAN (NTAPI *)(PVOID, ULONG); + using RtlGenRandom_fptr = BOOLEAN (NTAPI *)(PVOID, ULONG); Dynamically_Loaded_Library m_advapi; - RtlGenRandom_f m_rtlgenrandom; + RtlGenRandom_fptr m_rtlgenrandom; }; #elif defined(BOTAN_TARGET_OS_HAS_ARC4RANDOM) |