mock sealer: crypto/rand is fine here, I think..

This commit is contained in:
Łukasz Magiera 2023-12-01 23:05:55 +01:00
parent 7487454a75
commit 967fa2e47f

View File

@ -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{