*** empty log message ***
This commit is contained in:
@@ -167,7 +167,7 @@ namespace libtorrent
|
|||||||
void udp_tracker_connection::send_udp_announce()
|
void udp_tracker_connection::send_udp_announce()
|
||||||
{
|
{
|
||||||
if (m_transaction_id == 0)
|
if (m_transaction_id == 0)
|
||||||
m_transaction_id = rand() | (rand() << 16);
|
m_transaction_id = rand() ^ (rand() << 16);
|
||||||
|
|
||||||
std::vector<char> buf;
|
std::vector<char> buf;
|
||||||
std::back_insert_iterator<std::vector<char> > out(buf);
|
std::back_insert_iterator<std::vector<char> > out(buf);
|
||||||
@@ -207,7 +207,7 @@ namespace libtorrent
|
|||||||
void udp_tracker_connection::send_udp_scrape()
|
void udp_tracker_connection::send_udp_scrape()
|
||||||
{
|
{
|
||||||
if (m_transaction_id == 0)
|
if (m_transaction_id == 0)
|
||||||
m_transaction_id = rand() | (rand() << 16);
|
m_transaction_id = rand() ^ (rand() << 16);
|
||||||
|
|
||||||
std::vector<char> buf;
|
std::vector<char> buf;
|
||||||
std::back_insert_iterator<std::vector<char> > out(buf);
|
std::back_insert_iterator<std::vector<char> > out(buf);
|
||||||
@@ -232,10 +232,10 @@ namespace libtorrent
|
|||||||
char* ptr = send_buf;
|
char* ptr = send_buf;
|
||||||
|
|
||||||
if (m_transaction_id == 0)
|
if (m_transaction_id == 0)
|
||||||
m_transaction_id = rand() | (rand() << 16);
|
m_transaction_id = rand() ^ (rand() << 16);
|
||||||
|
|
||||||
// connection_id
|
// connection_id
|
||||||
detail::write_int64(0, ptr);
|
detail::write_int64(0x41727101980, ptr);
|
||||||
// action (connect)
|
// action (connect)
|
||||||
detail::write_int32(connect, ptr);
|
detail::write_int32(connect, ptr);
|
||||||
// transaction_id
|
// transaction_id
|
||||||
|
Reference in New Issue
Block a user