forked from premiere/premiere-libtorrent
initialize random number generator for tests
This commit is contained in:
parent
df97a76c2f
commit
2da6b152d8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue