Skip to content

Commit 2bbbe87

Browse files
committed
update rand calls
1 parent 8503911 commit 2bbbe87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

element_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func TestElementIDs_Sort(t *testing.T) {
302302
}
303303

304304
func BenchmarkElementID_Sort(b *testing.B) {
305-
rand.Seed(1024)
305+
rand.New(rand.NewSource(1024))
306306

307307
tests := make([]ElementIDs, b.N)
308308
for i := range tests {

feature_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func TestFeatureIDs_Sort(t *testing.T) {
222222
}
223223

224224
func BenchmarkFeatureIDs_Sort(b *testing.B) {
225-
rand.Seed(1024)
225+
rand.New(rand.NewSource(1024))
226226

227227
tests := make([]FeatureIDs, b.N)
228228
for i := range tests {

0 commit comments

Comments
 (0)