From a430107dcf6d179aecfe12ba3e0ccc5f8e9176d9 Mon Sep 17 00:00:00 2001 From: Martin Hutchinson Date: Tue, 11 Apr 2023 16:42:17 +0100 Subject: [PATCH] Remove deprecated use of math/rand.Read (#2958) --- testonly/mdm/mdm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testonly/mdm/mdm.go b/testonly/mdm/mdm.go index a517665d84..c057524e86 100644 --- a/testonly/mdm/mdm.go +++ b/testonly/mdm/mdm.go @@ -18,6 +18,7 @@ package mdm import ( "context" + crand "crypto/rand" "fmt" "math/rand" "strconv" @@ -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.