fixed build errors on Solaris

This commit is contained in:
Arvid Norberg
2009-01-27 08:24:48 +00:00
parent 37c48117b0
commit 3cdf9c87a8
26 changed files with 88 additions and 61 deletions

View File

@@ -1487,7 +1487,7 @@ namespace libtorrent
// we're not using rarest first (only for the first
// bucket, since that's where the currently downloading
// pieces are)
int start_piece = rand() % m_piece_map.size();
int start_piece = std::rand() % m_piece_map.size();
int piece = start_piece;
while (num_blocks > 0)