From e7a33a2dc3beed1fd58463b37d54cf6b3d3efce7 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 17 Aug 2018 18:33:23 +0700 Subject: [PATCH] cherry-pick https://go-review.googlesource.com/c/go/+/129755 --- handshake_messages_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handshake_messages_test.go b/handshake_messages_test.go index 9ab291c..5c67a2d 100644 --- a/handshake_messages_test.go +++ b/handshake_messages_test.go @@ -205,7 +205,7 @@ func (*serverHelloMsg) Generate(rand *rand.Rand, size int) reflect.Value { numSCTs := rand.Intn(4) m.scts = make([][]byte, numSCTs) for i := range m.scts { - m.scts[i] = randomBytes(rand.Intn(500), rand) + m.scts[i] = randomBytes(rand.Intn(500)+1, rand) } }