From 80eb8ab8c4a3bc1e6bb841d9dd2ab3d609786745 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 17 Nov 2008 04:00:45 +0000 Subject: Use std::vector instead of SecureVector to hold random input for filter benchmark --- checks/bench.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'checks/bench.cpp') 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 buf(128 * 1024); - rng.randomize(buf, buf.size()); + std::vector 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(); } -- cgit v1.2.3