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 (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
|
"crypto/rand"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"math/rand"
|
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
@ -478,8 +478,7 @@ func (mgr *SectorMgr) StageFakeData(mid abi.ActorID, spt abi.RegisteredSealProof
|
|||||||
}
|
}
|
||||||
|
|
||||||
buf := make([]byte, usize)
|
buf := make([]byte, usize)
|
||||||
// lint:ignore SA1019 we need predictable "randomness" here
|
_, _ = rand.Reader.Read(buf)
|
||||||
_, _ = rand.Read(buf) // nolint:gosec
|
|
||||||
|
|
||||||
id := storiface.SectorRef{
|
id := storiface.SectorRef{
|
||||||
ID: abi.SectorID{
|
ID: abi.SectorID{
|
||||||
|
Loading…
Reference in New Issue
Block a user