]> granicus.if.org Git - transmission/commitdiff
Test val instead of i
authorMukund Sivaraman <muks@mukund.org>
Sat, 6 Sep 2008 02:08:43 +0000 (02:08 +0000)
committerMukund Sivaraman <muks@mukund.org>
Sat, 6 Sep 2008 02:08:43 +0000 (02:08 +0000)
libtransmission/utils-test.c

index b15e61ef5155bec698d907c6ae774298df843f24..fa547cf9bd27492ce871362f4f28027f49a6315c 100644 (file)
@@ -141,8 +141,8 @@ main( void )
     /* test that tr_cryptoRandInt() stays in-bounds */
     for( i=0; i<100000; ++i ) {
         const int val = tr_cryptoRandInt( 100 );
-        check( i >= 0 );
-        check( i < 100 );
+        check( val >= 0 );
+        check( val < 100 );
     }
 
     /* simple bitfield tests */