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

@@ -11,8 +11,6 @@ import (
"strings"
"testing"
"golang.org/x/exp/rand"
"github.com/google/go-cmp/cmp"
"gonum.org/v1/gonum/graph"
@@ -21,6 +19,7 @@ import (
"gonum.org/v1/gonum/graph/iterator"
"gonum.org/v1/gonum/graph/multi"
"gonum.org/v1/gonum/graph/testgraph"
"gonum.org/v1/gonum/internal/rand"
)
func graphBuilder(nodes []graph.Node, edges []testgraph.WeightedLine, _, _ float64) (g graph.Graph, n []graph.Node, e []testgraph.Edge, s, a float64, ok bool) {