Skip to content

Commit

Permalink
Remove deprecated use of math/rand.Read (#2958)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutchinson authored Apr 11, 2023
1 parent 4185a61 commit a430107
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testonly/mdm/mdm.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package mdm

import (
"context"
crand "crypto/rand"
"fmt"
"math/rand"
"strconv"
Expand Down Expand Up @@ -131,7 +132,7 @@ func (m *MergeDelayMonitor) monitor(ctx context.Context, idx int) error {
createNew = true
}
if createNew {
rand.Read(data)
crand.Read(data)
}

// Add the leaf data and wait for its inclusion.
Expand Down

0 comments on commit a430107

Please sign in to comment.