Merge pull request #104816 from mkumatag/fix-rand

Update the valid string from rand.go
This commit is contained in:
Kubernetes Prow Robot 2021-09-07 19:29:19 -07:00 committed by GitHub
commit f30f5a6862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ const (
) )
func TestString(t *testing.T) { func TestString(t *testing.T) {
valid := "0123456789abcdefghijklmnopqrstuvwxyz" valid := "bcdfghjklmnpqrstvwxz2456789"
for _, l := range []int{0, 1, 2, 10, 123} { for _, l := range []int{0, 1, 2, 10, 123} {
s := String(l) s := String(l)
if len(s) != l { if len(s) != l {