diff --git a/bench/latency.cpp b/bench/latency.cpp index 687565a8..e9a9decc 100644 --- a/bench/latency.cpp +++ b/bench/latency.cpp @@ -31,7 +31,7 @@ void bench_mt(int howmany, std::shared_ptr log, int thread_count int main(int , char *[]) { - std::srand(std::time(nullptr)); // use current time as seed for random generator + std::srand(static_cast(std::time(nullptr))); // use current time as seed for random generator int howmany = 1000000; int queue_size = howmany + 2; int threads = 10;