Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
112098: cloudcheck: change rand src r=dt a=dt

Release note: none.
Epic: none.

Fixes: cockroachdb#110599.

Co-authored-by: David Taylor <[email protected]>
  • Loading branch information
craig[bot] and dt committed Oct 11, 2023
2 parents c456346 + 769fa1a commit 1309e32
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/cloud/cloudcheck/cloudcheck_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,9 @@ func checkStorage(
}

buf := make([]byte, chunkSize)
// https://github.com/cockroachdb/cockroach/issues/110599 tracks this
// deprecated usage.
//lint:ignore SA1019 deprecated
_, _ = rand.Read(buf)
// This doesn't need to be cryptographic; pseudo-rand is enough to make the
// payload not completely compress away.
_, _ = rand.New(rand.NewSource(rand.Int63())).Read(buf)

var res result

Expand Down

0 comments on commit 1309e32

Please sign in to comment.