From 3ab746963261da1f1124840f85ed017415ff17bd Mon Sep 17 00:00:00 2001 From: schmidt Date: Thu, 24 Apr 1997 06:53:47 +0000 Subject: *** empty log message *** --- tests/Timer_Queue_Test.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/Timer_Queue_Test.cpp b/tests/Timer_Queue_Test.cpp index d08b8518f9c..10e066a0204 100644 --- a/tests/Timer_Queue_Test.cpp +++ b/tests/Timer_Queue_Test.cpp @@ -28,13 +28,11 @@ static void randomize_array (int array[], size_t size) { - size_t i; - ACE_OS::srand (ACE_OS::time (0L)); // Randomize the array. - for (i = 0; i < size; i++) + for (size_t i = 0; i < size; i++) { int index = ACE_OS::rand() % size--; int temp = array [index]; @@ -235,7 +233,7 @@ test_performance (ACE_Timer_Queue *tq, timer.start (); - for (i = max_iterations - 1; i >= 0; i--) + for (i = 0; i < max_iterations; i++) tq->cancel (timer_ids[i]); ACE_ASSERT (tq->is_empty ()); -- cgit v1.2.1