diff options
Diffstat (limited to 'checks/bench.cpp')
-rw-r--r-- | checks/bench.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/checks/bench.cpp b/checks/bench.cpp index 81a6a96d1..93620224a 100644 --- a/checks/bench.cpp +++ b/checks/bench.cpp @@ -31,17 +31,17 @@ double bench_filter(std::string name, Botan::Filter* filter, { Botan::Pipe pipe(filter, new BitBucket); - pipe.start_msg(); + Botan::SecureVector<byte> buf(128 * 1024); + rng.randomize(buf, buf.size()); - byte buf[32 * 1024]; - Timer timer(name, sizeof(buf)); + pipe.start_msg(); - rng.randomize(buf, sizeof(buf)); + Timer timer(name, buf.size()); while(timer.seconds() < seconds) { timer.start(); - pipe.write(buf, sizeof(buf)); + pipe.write(buf, buf.size()); timer.stop(); } |