diff --git a/src/PlatRand.cpp b/src/PlatRand.cpp index 8b0d4dfc62..bd5873bea8 100644 --- a/src/PlatRand.cpp +++ b/src/PlatRand.cpp @@ -17,7 +17,7 @@ bool AddSystemEntropy() if (!CryptAcquireContext(&cryptoHandle, NULL, name, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) return false; - if(!CryptGenRandom(cryptoHandle, 128, reinterpret_cast rand)) + if(!CryptGenRandom(cryptoHandle, 128, reinterpret_cast(rand))) { CryptReleaseContext(cryptoHandle, 0); return false;