fixed deprecated rand usage
This commit is contained in:
parent
8e9334fe3c
commit
2056d31911
@ -5,16 +5,10 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
|
|
||||||
func init() {
|
|
||||||
// Use different values every test to try and catch edge cases.
|
|
||||||
rand.Seed(time.Now().Unix())
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestInit(t *testing.T) {
|
func TestInit(t *testing.T) {
|
||||||
// test all available dimensional combinations
|
// test all available dimensional combinations
|
||||||
for n := 1; n <= MaxN; n++ {
|
for n := 1; n <= MaxN; n++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user