aboutsummaryrefslogtreecommitdiffstats
path: root/checks/bench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'checks/bench.cpp')
-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();
}