initialize random number generator for tests

This commit is contained in:
Arvid Norberg
2013-07-30 16:04:53 +00:00
parent df97a76c2f
commit 2da6b152d8

View File

@@ -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