initialize random number generator for tests
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user