aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2018-05-07 23:41:47 +0200
committerSimon Warta <[email protected]>2018-05-07 23:41:47 +0200
commit46460afb53830373b0187fbc73ce6a1650a110da (patch)
tree9ffe0fdaad4955fd5903a70d16dfa05b71b117d9 /src/lib/rng
parent90dc93660265baf2bf408b46b175590f451c6675 (diff)
Rewrite assignment of RtlGenRandom_f using "using"
Diffstat (limited to 'src/lib/rng')
-rw-r--r--src/lib/rng/system_rng/system_rng.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rng/system_rng/system_rng.cpp b/src/lib/rng/system_rng/system_rng.cpp
index 39ccf2f6b..2a543aa8e 100644
--- a/src/lib/rng/system_rng/system_rng.cpp
+++ b/src/lib/rng/system_rng/system_rng.cpp
@@ -51,7 +51,7 @@ class System_RNG_Impl final : public RandomNumberGenerator
void clear() override { /* not possible */ }
std::string name() const override { return "RtlGenRandom"; }
private:
- typedef BOOLEAN (NTAPI *RtlGenRandom_f)(PVOID, ULONG);
+ using RtlGenRandom_f = BOOLEAN (NTAPI *)(PVOID, ULONG);
Dynamically_Loaded_Library m_advapi;
RtlGenRandom_f m_rtlgenrandom;