15 * Generate a random url-safe string.
16 * Note that the "len" parameter specifies the number of bytes taken from the
17 * random source divided by three and does NOT represent the length of the
20 func random(len int) string {
21 r
:= make([]byte, 3*len)
23 return base64
.RawURLEncoding
.EncodeToString(r
)