From d73929a5ec894625e7e4cb82c1a22bea4a0e7a26 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 13 Dec 2010 22:06:30 +0000 Subject: Fix compile --- src/entropy/cryptoapi_rng/es_capi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/entropy') 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(out))) + if(is_valid() && CryptGenRandom(handle, static_cast(n), out)) return n; return 0; } -- cgit v1.2.3