From 9a0e2bd88458e176abb983c742a7156aaad0909a Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 7 May 2018 23:42:35 +0200 Subject: Rename RtlGenRandom_f -> RtlGenRandom_fptr because this is a function pointer, not a function --- src/lib/rng/system_rng/system_rng.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/rng') 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("SystemFunction036"); + m_rtlgenrandom = m_advapi.resolve("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) -- cgit v1.2.3