Commit 620aaba5 authored by rht's avatar rht

Swap all 'crypto/rand' rng in tests with 'math/rand'

parent 1cfd9abd
......@@ -2,14 +2,15 @@ package chunk
import (
"bytes"
"crypto/rand"
"io"
"testing"
u "github.com/ipfs/go-ipfs/util"
)
func randBuf(t *testing.T, size int) []byte {
buf := make([]byte, size)
if _, err := rand.Read(buf); err != nil {
if _, err := u.NewTimeSeededRand().Read(buf); err != nil {
t.Fatal("failed to read enough randomness")
}
return buf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment