Partially fixed a bug in the test suite that led to test runs randomly failing.
authorPeter Iannucci <iannucci@mit.edu>
Wed, 2 Oct 2013 01:42:40 +0000 (21:42 -0400)
committerPeter Iannucci <iannucci@mit.edu>
Wed, 2 Oct 2013 01:42:40 +0000 (21:42 -0400)
rsm_tester.pl

index c99c66f..3d94744 100755 (executable)
@@ -67,7 +67,7 @@ sub randports {
   my $num = shift;
   my @p = ();
   for( my $i = 0; $i < $num; $i++ ) {
-    push( @p, int(rand(54000))+10000 );
+    push( @p, int(rand(54000/2))*2+10000 );
   }
   my @sp = sort { $a <=> $b } @p;
   return @sp;