MCPcopy Create free account
hub / github.com/apecloud/myduckserver / getRandomString

Function getRandomString

flightsqltest/driver_test.go:1941–1949  ·  view source on GitHub ↗
(gen *rand.Rand, length int)

Source from the content-addressed store, hash-verified

1939var getRandomStringCharsetLen = len(getRandomStringCharset)
1940
1941func 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}

Calls

no outgoing calls

Tested by

no test coverage detected