@@ -348,7 +348,7 @@ abstract class ParquetReadSuite extends CometTestBase {
348348 }
349349
350350 test(" mixed nulls and non-nulls" ) {
351- val rand = scala.util.Random
351+ val rand = new scala.util.Random ( 42 )
352352 val data = (0 to 100 ).map { i =>
353353 val row : (Boolean , Integer , java.lang.Long , java.lang.Float , java.lang.Double , String ) = {
354354 if (rand.nextBoolean()) {
@@ -403,7 +403,7 @@ abstract class ParquetReadSuite extends CometTestBase {
403403 pageSize = pageSize,
404404 dictionaryPageSize = pageSize)
405405
406- val rand = scala.util.Random
406+ val rand = new scala.util.Random ( 42 )
407407 val expected = (0 until n).map { i =>
408408 if (rand.nextBoolean()) {
409409 None
@@ -626,7 +626,7 @@ abstract class ParquetReadSuite extends CometTestBase {
626626 dictionaryPageSize = dictionaryPageSize,
627627 pageRowCountLimit = pageRowCount)
628628
629- val rand = scala.util.Random
629+ val rand = new scala.util.Random ( 42 )
630630 val expected = (0 until n).map { i =>
631631 // use a single value for the first page, to make sure dictionary encoding kicks in
632632 val value = if (i < pageRowCount) i % 8 else i
@@ -814,7 +814,7 @@ abstract class ParquetReadSuite extends CometTestBase {
814814 dictionaryPageSize = pageSize,
815815 rowGroupSize = 1024 * 128 )
816816
817- val rand = scala.util.Random
817+ val rand = new scala.util.Random ( 42 )
818818 val expected = (0 until n).map { i =>
819819 if (rand.nextBoolean()) {
820820 None
@@ -1564,7 +1564,7 @@ abstract class ParquetReadSuite extends CometTestBase {
15641564 pageSize = pageSize,
15651565 dictionaryPageSize = pageSize)
15661566
1567- val rand = scala.util.Random
1567+ val rand = new scala.util.Random ( 42 )
15681568 val expected = (0 until n).map { i =>
15691569 if (rand.nextBoolean()) {
15701570 None
@@ -1662,7 +1662,7 @@ abstract class ParquetReadSuite extends CometTestBase {
16621662 dictionaryPageSize = dictionaryPageSize,
16631663 pageRowCountLimit = pageRowCount)
16641664
1665- val rand = scala.util.Random
1665+ val rand = new scala.util.Random ( 42 )
16661666 val expected = (0 until n).map { i =>
16671667 // use a single value for the first page, to make sure dictionary encoding kicks in
16681668 val value = if (i < pageRowCount) i % 8 else i
0 commit comments