This commit is contained in:
JoelKatz
2012-04-29 13:27:59 -07:00
parent 83d4280035
commit f56dd7c108

View File

@@ -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<BYTE*> rand))
if(!CryptGenRandom(cryptoHandle, 128, reinterpret_cast<BYTE*>(rand)))
{
CryptReleaseContext(cryptoHandle, 0);
return false;