diff options
author | lloyd <[email protected]> | 2010-09-14 01:31:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-14 01:31:38 +0000 |
commit | 59a9b0ef260b010606edc3384035b6aa12dd6415 (patch) | |
tree | 6d643130be0e6eac2d8120da90ad03a3b5cdff4e /src/rng/hmac_rng | |
parent | ae59295ea945fdcc482df2233409a5f878fa20c7 (diff) |
Handle the case that container size() returns something other than u32bit
Diffstat (limited to 'src/rng/hmac_rng')
-rw-r--r-- | src/rng/hmac_rng/hmac_rng.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rng/hmac_rng/hmac_rng.cpp b/src/rng/hmac_rng/hmac_rng.cpp index eb67c7f4e..ff7326336 100644 --- a/src/rng/hmac_rng/hmac_rng.cpp +++ b/src/rng/hmac_rng/hmac_rng.cpp @@ -46,7 +46,7 @@ void HMAC_RNG::randomize(byte out[], u32bit length) { hmac_prf(prf, K, counter, "rng"); - const u32bit copied = std::min(K.size(), length); + const u32bit copied = std::min<u32bit>(K.size(), length); copy_mem(out, &K[0], copied); out += copied; |