diff options
Diffstat (limited to 'src/lib/misc/benchmark/benchmark.cpp')
-rw-r--r-- | src/lib/misc/benchmark/benchmark.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/misc/benchmark/benchmark.cpp b/src/lib/misc/benchmark/benchmark.cpp index c30b20698..90d8b1aca 100644 --- a/src/lib/misc/benchmark/benchmark.cpp +++ b/src/lib/misc/benchmark/benchmark.cpp @@ -51,7 +51,7 @@ time_algorithm_ops(const std::string& name, const size_t Mebibyte = 1024*1024; secure_vector<byte> buffer(buf_size * 1024); - rng.randomize(&buffer[0], buffer.size()); + rng.randomize(buffer.data(), buffer.size()); const double mb_mult = buffer.size() / static_cast<double>(Mebibyte); |