merged random_seed assert into trunk

This commit is contained in:
Arvid Norberg
2014-07-19 02:17:19 +00:00
parent d2fccd8ae7
commit 30d561d0c5
5 changed files with 23 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/hasher.hpp"
#include "libtorrent/pe_crypto.hpp"
#include "libtorrent/session.hpp"
#include "libtorrent/random.hpp"
#include "setup_transfer.hpp"
#include "test.hpp"
@@ -181,6 +182,8 @@ int test_main()
const int repcount = 128;
#endif
random_seed(time_now_hires().time_since_epoch().count());
for (int rep = 0; rep < repcount; ++rep)
{
dh_key_exchange DH1, DH2;