diff options
author | lloyd <[email protected]> | 2010-02-14 06:18:15 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-02-14 06:18:15 +0000 |
commit | 7424a5b5102b569e3c052cb195c98b5d1b60ce30 (patch) | |
tree | 70ab6872b9980969a7dea97bccdcdbb4e4916f7a /src/rng/randpool/randpool.cpp | |
parent | 12e07d37e9622cfb24b2102090550a0260c6665c (diff) | |
parent | 16c3b54220d6e80f713a4d6321deb53a7b1e1fec (diff) |
propagate from branch 'net.randombit.botan' (head 5bfc3e699003b86615c584f8ae40bd6e761f96c0)
to branch 'net.randombit.botan.c++0x' (head 8c64a107b58d41f376bfffc69dfab4514d722c5c)
Diffstat (limited to 'src/rng/randpool/randpool.cpp')
-rw-r--r-- | src/rng/randpool/randpool.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rng/randpool/randpool.cpp b/src/rng/randpool/randpool.cpp index 9a4d77e55..c58378b32 100644 --- a/src/rng/randpool/randpool.cpp +++ b/src/rng/randpool/randpool.cpp @@ -8,8 +8,8 @@ #include <botan/randpool.h> #include <botan/get_byte.h> #include <botan/internal/xor_buf.h> -#include <botan/internal/stl_util.h> #include <algorithm> +#include <chrono> namespace Botan { @@ -202,8 +202,8 @@ Randpool::~Randpool() delete cipher; delete mac; - std::for_each(entropy_sources.begin(), entropy_sources.end(), - del_fun<EntropySource>()); + for(auto i = entropy_sources.begin(); i != entropy_sources.end(); ++i) + delete *i; } } |