Test val instead of i

This commit is contained in:
Mukund Sivaraman 2008-09-06 02:08:43 +00:00
parent 7944e7c608
commit 4d794e1a5b
1 changed files with 2 additions and 2 deletions

View 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 */