mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
use consistent alias for interal/test package
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"compress/gzip"
|
||||
"fmt"
|
||||
"io"
|
||||
"math/rand"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
@@ -12,8 +13,6 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/restic/restic/internal/errors"
|
||||
|
||||
mrand "math/rand"
|
||||
)
|
||||
|
||||
// Assert fails the test if the condition is false.
|
||||
@@ -71,7 +70,7 @@ func Equals(tb testing.TB, exp, act interface{}, msgs ...string) {
|
||||
func Random(seed, count int) []byte {
|
||||
p := make([]byte, count)
|
||||
|
||||
rnd := mrand.New(mrand.NewSource(int64(seed)))
|
||||
rnd := rand.New(rand.NewSource(int64(seed)))
|
||||
|
||||
for i := 0; i < len(p); i += 8 {
|
||||
val := rnd.Int63()
|
||||
|
||||
Reference in New Issue
Block a user