@@ -326,7 +326,7 @@ func TestBoolArrayValue(t *testing.T) {
326
326
}
327
327
328
328
func BenchmarkBoolArrayValue (b * testing.B ) {
329
- rand .Seed ( 1 )
329
+ rand .New ( rand . NewSource ( 1 ) )
330
330
x := make ([]bool , 10 )
331
331
for i := 0 ; i < len (x ); i ++ {
332
332
x [i ] = rand .Intn (2 ) == 0
@@ -477,7 +477,7 @@ func TestBytesArrayValue(t *testing.T) {
477
477
}
478
478
479
479
func BenchmarkBytesArrayValue (b * testing.B ) {
480
- rand .Seed ( 1 )
480
+ rand .New ( rand . NewSource ( 1 ) )
481
481
x := make ([][]byte , 10 )
482
482
for i := 0 ; i < len (x ); i ++ {
483
483
x [i ] = make ([]byte , len (x ))
@@ -634,7 +634,7 @@ func TestFloat64ArrayValue(t *testing.T) {
634
634
}
635
635
636
636
func BenchmarkFloat64ArrayValue (b * testing.B ) {
637
- rand .Seed ( 1 )
637
+ rand .New ( rand . NewSource ( 1 ) )
638
638
x := make ([]float64 , 10 )
639
639
for i := 0 ; i < len (x ); i ++ {
640
640
x [i ] = rand .NormFloat64 ()
@@ -787,7 +787,7 @@ func TestInt64ArrayValue(t *testing.T) {
787
787
}
788
788
789
789
func BenchmarkInt64ArrayValue (b * testing.B ) {
790
- rand .Seed ( 1 )
790
+ rand .New ( rand . NewSource ( 1 ) )
791
791
x := make ([]int64 , 10 )
792
792
for i := 0 ; i < len (x ); i ++ {
793
793
x [i ] = rand .Int63 ()
@@ -1229,7 +1229,7 @@ func TestGenericArrayValueErrors(t *testing.T) {
1229
1229
}
1230
1230
1231
1231
func BenchmarkGenericArrayValueBools (b * testing.B ) {
1232
- rand .Seed ( 1 )
1232
+ rand .New ( rand . NewSource ( 1 ) )
1233
1233
x := make ([]bool , 10 )
1234
1234
for i := 0 ; i < len (x ); i ++ {
1235
1235
x [i ] = rand .Intn (2 ) == 0
@@ -1242,7 +1242,7 @@ func BenchmarkGenericArrayValueBools(b *testing.B) {
1242
1242
}
1243
1243
1244
1244
func BenchmarkGenericArrayValueFloat64s (b * testing.B ) {
1245
- rand .Seed ( 1 )
1245
+ rand .New ( rand . NewSource ( 1 ) )
1246
1246
x := make ([]float64 , 10 )
1247
1247
for i := 0 ; i < len (x ); i ++ {
1248
1248
x [i ] = rand .NormFloat64 ()
@@ -1255,7 +1255,7 @@ func BenchmarkGenericArrayValueFloat64s(b *testing.B) {
1255
1255
}
1256
1256
1257
1257
func BenchmarkGenericArrayValueInt64s (b * testing.B ) {
1258
- rand .Seed ( 1 )
1258
+ rand .New ( rand . NewSource ( 1 ) )
1259
1259
x := make ([]int64 , 10 )
1260
1260
for i := 0 ; i < len (x ); i ++ {
1261
1261
x [i ] = rand .Int63 ()
0 commit comments