Changeset 9734


Ignore:
Timestamp:
Dec 12, 2009, 9:37:36 PM (12 years ago)
Author:
livings124
Message:

remove unnecessary asserts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/crypto.c

    r9724 r9734  
    338338    }
    339339
    340     assert( val >= 0 );
    341     assert( val < upperBound );
    342340    return val;
    343341}
     
    346344tr_cryptoWeakRandInt( int upperBound )
    347345{
    348     int val;
    349346    static tr_bool init = FALSE;
    350347
     
    357354    }
    358355
    359     val = rand( ) % upperBound;
    360     assert( val >= 0 );
    361     assert( val < upperBound );
    362     return val;
     356    return rand( ) % upperBound;
    363357}
    364358
Note: See TracChangeset for help on using the changeset viewer.