all: partially migrate to math/rand/v2

This is not intended to be a completed transition since it leaves the
libraries unusable to external client code, but rather as a step towards
use of math/rand/v2. This initial step allows repair of sequence change
failures without having to worry about API difference.
This commit is contained in:
Dan Kortschak
2024-08-15 14:45:05 +09:30
parent 87478959b2
commit cf3307fa63
352 changed files with 1240 additions and 697 deletions

View File

@@ -7,9 +7,8 @@ package lp
import (
"testing"
"golang.org/x/exp/rand"
"gonum.org/v1/gonum/floats/scalar"
"gonum.org/v1/gonum/internal/rand"
"gonum.org/v1/gonum/mat"
)
@@ -132,7 +131,7 @@ func TestSimplex(t *testing.T) {
rnd := rand.New(rand.NewSource(1))
// Randomized tests
testRandomSimplex(t, 20000, 0.7, 10, rnd)
testRandomSimplex(t, 20000, 0.2, 10, rnd)
testRandomSimplex(t, 20000, 0, 10, rnd)
testRandomSimplex(t, 200, 0, 100, rnd)
testRandomSimplex(t, 2, 0, 400, rnd)