fix to test_web_seed

This commit is contained in:
Arvid Norberg 2008-11-02 00:26:13 +00:00
parent e0bea061b5
commit b663ab81a6
1 changed files with 4 additions and 1 deletions

View File

@ -132,7 +132,10 @@ int test_main()
using namespace libtorrent;
using namespace boost::filesystem;
create_directory("test_torrent");
try {
create_directory("test_torrent");
} catch (std::exception&) {}
char random_data[300000];
std::srand(std::time(0));
std::generate(random_data, random_data + sizeof(random_data), &std::rand);