From d712f22b21dce671e7911cd20e72ec0ee28b286a Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Wed, 20 Aug 2008 14:55:23 +0000 Subject: [PATCH] Rename function to indicate its stupidity --- libtransmission/peer-mgr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 0ecd3fe62..82677e978 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -137,7 +137,7 @@ struct tr_peerMgr */ static int -tr_simpleRandInt( int sup ) +tr_stupidRandInt( int sup ) { static int init = 0; assert( sup > 0 ); @@ -621,7 +621,7 @@ getPreferredPieces( Torrent * t, setme->piece = piece; setme->priority = inf->pieces[piece].priority; setme->peerCount = 0; - setme->random = tr_simpleRandInt( UINT16_MAX ); + setme->random = tr_stupidRandInt( UINT16_MAX ); setme->missingBlockCount = tr_cpMissingBlocksInPiece( tor->completion, piece ); for( k=0; kdoUnchoke = 1; t->optimistic = c->peer; }