mock sealer: crypto/rand is fine here, I think..
This commit is contained in:
parent
7487454a75
commit
967fa2e47f
@ -3,10 +3,10 @@ package mock
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"crypto/rand"
|
||||
"crypto/sha256"
|
||||
"fmt"
|
||||
"io"
|
||||
"math/rand"
|
||||
"sync"
|
||||
|
||||
"github.com/ipfs/go-cid"
|
||||
@ -478,8 +478,7 @@ func (mgr *SectorMgr) StageFakeData(mid abi.ActorID, spt abi.RegisteredSealProof
|
||||
}
|
||||
|
||||
buf := make([]byte, usize)
|
||||
// lint:ignore SA1019 we need predictable "randomness" here
|
||||
_, _ = rand.Read(buf) // nolint:gosec
|
||||
_, _ = rand.Reader.Read(buf)
|
||||
|
||||
id := storiface.SectorRef{
|
||||
ID: abi.SectorID{
|
||||
|
Loading…
Reference in New Issue
Block a user