@@ -326,7 +326,7 @@ func TestBoolArrayValue(t *testing.T) {
326326}
327327
328328func BenchmarkBoolArrayValue (b * testing.B ) {
329- rand .Seed ( 1 )
329+ rand .New ( rand . NewSource ( 1 ) )
330330 x := make ([]bool , 10 )
331331 for i := 0 ; i < len (x ); i ++ {
332332 x [i ] = rand .Intn (2 ) == 0
@@ -477,7 +477,7 @@ func TestBytesArrayValue(t *testing.T) {
477477}
478478
479479func BenchmarkBytesArrayValue (b * testing.B ) {
480- rand .Seed ( 1 )
480+ rand .New ( rand . NewSource ( 1 ) )
481481 x := make ([][]byte , 10 )
482482 for i := 0 ; i < len (x ); i ++ {
483483 x [i ] = make ([]byte , len (x ))
@@ -634,7 +634,7 @@ func TestFloat64ArrayValue(t *testing.T) {
634634}
635635
636636func BenchmarkFloat64ArrayValue (b * testing.B ) {
637- rand .Seed ( 1 )
637+ rand .New ( rand . NewSource ( 1 ) )
638638 x := make ([]float64 , 10 )
639639 for i := 0 ; i < len (x ); i ++ {
640640 x [i ] = rand .NormFloat64 ()
@@ -787,7 +787,7 @@ func TestInt64ArrayValue(t *testing.T) {
787787}
788788
789789func BenchmarkInt64ArrayValue (b * testing.B ) {
790- rand .Seed ( 1 )
790+ rand .New ( rand . NewSource ( 1 ) )
791791 x := make ([]int64 , 10 )
792792 for i := 0 ; i < len (x ); i ++ {
793793 x [i ] = rand .Int63 ()
@@ -1229,7 +1229,7 @@ func TestGenericArrayValueErrors(t *testing.T) {
12291229}
12301230
12311231func BenchmarkGenericArrayValueBools (b * testing.B ) {
1232- rand .Seed ( 1 )
1232+ rand .New ( rand . NewSource ( 1 ) )
12331233 x := make ([]bool , 10 )
12341234 for i := 0 ; i < len (x ); i ++ {
12351235 x [i ] = rand .Intn (2 ) == 0
@@ -1242,7 +1242,7 @@ func BenchmarkGenericArrayValueBools(b *testing.B) {
12421242}
12431243
12441244func BenchmarkGenericArrayValueFloat64s (b * testing.B ) {
1245- rand .Seed ( 1 )
1245+ rand .New ( rand . NewSource ( 1 ) )
12461246 x := make ([]float64 , 10 )
12471247 for i := 0 ; i < len (x ); i ++ {
12481248 x [i ] = rand .NormFloat64 ()
@@ -1255,7 +1255,7 @@ func BenchmarkGenericArrayValueFloat64s(b *testing.B) {
12551255}
12561256
12571257func BenchmarkGenericArrayValueInt64s (b * testing.B ) {
1258- rand .Seed ( 1 )
1258+ rand .New ( rand . NewSource ( 1 ) )
12591259 x := make ([]int64 , 10 )
12601260 for i := 0 ; i < len (x ); i ++ {
12611261 x [i ] = rand .Int63 ()
0 commit comments