fix range of lsd::cookie (#920)

fix cookie range of lsd in lsd::on_announce
This commit is contained in:
terry zhao 2016-07-19 00:19:45 +08:00 committed by Arvid Norberg
parent 8f3bd1052e
commit e75bb120b4
1 changed files with 1 additions and 1 deletions

View File

@ -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)