mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 07:37:03 +08:00
all: replace internal rand shim with math/rand/v2
This commit is contained in:
@@ -6,9 +6,8 @@ package testlapack
|
||||
|
||||
import (
|
||||
"math"
|
||||
"math/rand/v2"
|
||||
"testing"
|
||||
|
||||
"gonum.org/v1/gonum/internal/rand"
|
||||
)
|
||||
|
||||
type Dlaev2er interface {
|
||||
@@ -16,7 +15,7 @@ type Dlaev2er interface {
|
||||
}
|
||||
|
||||
func Dlaev2Test(t *testing.T, impl Dlaev2er) {
|
||||
rnd := rand.New(rand.NewSource(1))
|
||||
rnd := rand.New(rand.NewPCG(1, 1))
|
||||
for trial := 0; trial < 100; trial++ {
|
||||
a := rnd.NormFloat64()
|
||||
b := rnd.NormFloat64()
|
||||
|
Reference in New Issue
Block a user