(gen *rand.Rand, length int)
| 1939 | var getRandomStringCharsetLen = len(getRandomStringCharset) |
| 1940 | |
| 1941 | func getRandomString(gen *rand.Rand, length int) string { |
| 1942 | result := make([]byte, length) |
| 1943 | |
| 1944 | for i := range result { |
| 1945 | result[i] = getRandomStringCharset[rand.Intn(getRandomStringCharsetLen)] |
| 1946 | } |
| 1947 | |
| 1948 | return string(result) |
| 1949 | } |
no outgoing calls
no test coverage detected