Blame 0001-Convert-int-to-string-using-strconv.Itoa.patch

721d624
From 15210f3ab9983aaa467e4e403f726e34fb6e129a Mon Sep 17 00:00:00 2001
721d624
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
721d624
Date: Sat, 8 Aug 2020 23:49:34 +0200
721d624
Subject: [PATCH] Convert int to string using strconv.Itoa
721d624
MIME-Version: 1.0
721d624
Content-Type: text/plain; charset=UTF-8
721d624
Content-Transfer-Encoding: 8bit
721d624
721d624
See https://github.com/golang/go/issues/32479
721d624
721d624
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
721d624
---
721d624
 strings_test.go | 2 +-
721d624
 1 file changed, 1 insertion(+), 1 deletion(-)
721d624
721d624
diff --git a/strings_test.go b/strings_test.go
721d624
index 2c2cec8..85ba017 100644
721d624
--- a/strings_test.go
721d624
+++ b/strings_test.go
721d624
@@ -138,7 +138,7 @@ func (g *generator) NextString() (str string) {
721d624
 		if i == numpos {
721d624
 			str += num
721d624
 		} else {
721d624
-			str += string('a' + g.src.Intn(16))
721d624
+			str += string(rune('a')) + strconv.Itoa(g.src.Intn(16))
721d624
 		}
721d624
 	}
721d624
 	return str
721d624
-- 
721d624
2.26.2
721d624