diff --git a/test/main.cpp b/test/main.cpp index b4c6dbf23..4538a0981 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -78,6 +78,7 @@ using namespace libtorrent; int main() { + srand(total_microseconds(time_now_hires() - min_time())); #ifdef O_NONBLOCK // on darwin, stdout is set to non-blocking mode by default // which sometimes causes tests to fail with EAGAIN just