mirror of
				https://github.com/gonum/gonum.git
				synced 2025-10-31 10:36:30 +08:00 
			
		
		
		
	all: replace internal rand shim with math/rand/v2
This commit is contained in:
		| @@ -6,10 +6,10 @@ package testlapack | ||||
|  | ||||
| import ( | ||||
| 	"math" | ||||
| 	"math/rand/v2" | ||||
| 	"testing" | ||||
|  | ||||
| 	"gonum.org/v1/gonum/floats" | ||||
| 	"gonum.org/v1/gonum/internal/rand" | ||||
| ) | ||||
|  | ||||
| type Dorglqer interface { | ||||
| @@ -18,7 +18,7 @@ type Dorglqer interface { | ||||
| } | ||||
|  | ||||
| func DorglqTest(t *testing.T, impl Dorglqer) { | ||||
| 	rnd := rand.New(rand.NewSource(1)) | ||||
| 	rnd := rand.New(rand.NewPCG(1, 1)) | ||||
| 	// TODO(btracey): Base tests off of nb and nx. | ||||
| 	for _, test := range []struct{ m, n, k, lda int }{ | ||||
| 		{10, 10, 10, 0}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dan Kortschak
					Dan Kortschak