aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-17 04:00:45 +0000
committerlloyd <[email protected]>2008-11-17 04:00:45 +0000
commit80eb8ab8c4a3bc1e6bb841d9dd2ab3d609786745 (patch)
tree5135166f97042d43b1aa9995a506430f64bc800f
parent0dfac41dc0f456128ccb14e16f7a38453e16ad93 (diff)
Use std::vector instead of SecureVector to hold random input for filter benchmark
-rw-r--r--checks/bench.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/checks/bench.cpp b/checks/bench.cpp
index 93620224a..6df7319c0 100644
--- a/checks/bench.cpp
+++ b/checks/bench.cpp
@@ -31,8 +31,8 @@ double bench_filter(std::string name, Botan::Filter* filter,
{
Botan::Pipe pipe(filter, new BitBucket);
- Botan::SecureVector<byte> buf(128 * 1024);
- rng.randomize(buf, buf.size());
+ std::vector<byte> buf(128 * 1024);
+ rng.randomize(&buf[0], buf.size());
pipe.start_msg();
@@ -41,7 +41,7 @@ double bench_filter(std::string name, Botan::Filter* filter,
while(timer.seconds() < seconds)
{
timer.start();
- pipe.write(buf, buf.size());
+ pipe.write(&buf[0], buf.size());
timer.stop();
}