diff options
Diffstat (limited to 'src/entropy')
-rw-r--r-- | src/entropy/cryptoapi_rng/es_capi.cpp | 2 | ||||
-rw-r--r-- | src/entropy/entropy_src.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/entropy/cryptoapi_rng/es_capi.cpp b/src/entropy/cryptoapi_rng/es_capi.cpp index 420977a9b..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, out)) + if(is_valid() && CryptGenRandom(handle, static_cast<DWORD>(n), out)) return n; return 0; } diff --git a/src/entropy/entropy_src.h b/src/entropy/entropy_src.h index d713598d9..3f15b5907 100644 --- a/src/entropy/entropy_src.h +++ b/src/entropy/entropy_src.h @@ -10,7 +10,6 @@ #include <botan/buf_comp.h> #include <string> -#include <utility> namespace Botan { |