From 2da6b152d80fbbf4e8eb787dbbbe9949f0c82e7a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 30 Jul 2013 16:04:53 +0000 Subject: [PATCH] initialize random number generator for tests --- test/main.cpp | 1 + 1 file changed, 1 insertion(+) 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