forked from premiere/premiere-libtorrent
fix range of lsd::cookie (#920)
fix cookie range of lsd in lsd::on_announce
This commit is contained in:
parent
8f3bd1052e
commit
e75bb120b4
|
@ -87,7 +87,7 @@ lsd::lsd(io_service& ios, peer_callback_t const& cb
|
|||
, m_log_cb(log)
|
||||
#endif
|
||||
, m_broadcast_timer(ios)
|
||||
, m_cookie(random())
|
||||
, m_cookie(random() & 0x7fffffff)
|
||||
, m_disabled(false)
|
||||
#if TORRENT_USE_IPV6
|
||||
, m_disabled6(false)
|
||||
|
|
Loading…
Reference in New Issue