aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-12-13 22:06:30 +0000
committerlloyd <[email protected]>2010-12-13 22:06:30 +0000
commitd73929a5ec894625e7e4cb82c1a22bea4a0e7a26 (patch)
tree1c9e593a56b1a712da293ff03e09c32c84c85176 /src
parent64272438aad858bdf4fc93cd94e0a20093c0191f (diff)
Fix compile
Diffstat (limited to 'src')
-rw-r--r--src/entropy/cryptoapi_rng/es_capi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entropy/cryptoapi_rng/es_capi.cpp b/src/entropy/cryptoapi_rng/es_capi.cpp
index 496dfa1f3..d3d076641 100644
--- a/src/entropy/cryptoapi_rng/es_capi.cpp
+++ b/src/entropy/cryptoapi_rng/es_capi.cpp
@@ -35,7 +35,7 @@ class CSP_Handle
size_t gen_random(byte out[], size_t n) const
{
- if(is_valid() && CryptGenRandom(handle, n, static_cast<DWORD>(out)))
+ if(is_valid() && CryptGenRandom(handle, static_cast<DWORD>(n), out))
return n;
return 0;
}