diff options
author | lloyd <[email protected]> | 2008-11-17 04:00:45 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-17 04:00:45 +0000 |
commit | 80eb8ab8c4a3bc1e6bb841d9dd2ab3d609786745 (patch) | |
tree | 5135166f97042d43b1aa9995a506430f64bc800f /checks | |
parent | 0dfac41dc0f456128ccb14e16f7a38453e16ad93 (diff) |
Use std::vector instead of SecureVector to hold random input for filter benchmark
Diffstat (limited to 'checks')
-rw-r--r-- | checks/bench.cpp | 6 |
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(); } |