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
19 func random(len int) string {
20 r
:= make([]byte, 3*len)
22 return base64
.RawURLEncoding
.EncodeToString(r
)