Blob Blame History Raw
From 15210f3ab9983aaa467e4e403f726e34fb6e129a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
Date: Sat, 8 Aug 2020 23:49:34 +0200
Subject: [PATCH] Convert int to string using strconv.Itoa
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

See https://github.com/golang/go/issues/32479

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
---
 strings_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/strings_test.go b/strings_test.go
index 2c2cec8..85ba017 100644
--- a/strings_test.go
+++ b/strings_test.go
@@ -138,7 +138,7 @@ func (g *generator) NextString() (str string) {
 		if i == numpos {
 			str += num
 		} else {
-			str += string('a' + g.src.Intn(16))
+			str += string(rune('a')) + strconv.Itoa(g.src.Intn(16))
 		}
 	}
 	return str
-- 
2.26.2