mirror of
https://github.com/gonum/gonum.git
synced 2025-10-21 14:19:35 +08:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user