From fcdf293356dc62e44d974a27e5fd39148cf2e14d Mon Sep 17 00:00:00 2001 From: "jan-dominik.blome" Date: Wed, 15 Mar 2017 12:19:31 +0100 Subject: [PATCH] Remove unnecessary static from reference to singleton --- osrng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osrng.cpp b/osrng.cpp index 0619b34d..6d36aaea 100644 --- a/osrng.cpp +++ b/osrng.cpp @@ -146,7 +146,7 @@ void NonblockingRng::GenerateBlock(byte *output, size_t size) { #ifdef CRYPTOPP_WIN32_AVAILABLE // Acquiring a provider is expensive. Do it once and retain the reference. - static const MicrosoftCryptoProvider &hProvider = Singleton().Ref(); + const MicrosoftCryptoProvider &hProvider = Singleton().Ref(); # if defined(USE_MS_CRYPTOAPI) if (!CryptGenRandom(hProvider.GetProviderHandle(), (DWORD)size, output)) throw OS_RNG_Err("CryptGenRandom");