16 lines
		
	
	
		
			299 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			299 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package packet
 | 
						|
 | 
						|
import (
 | 
						|
	"math/rand"
 | 
						|
)
 | 
						|
 | 
						|
const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$%!@%&*()-=+[]{}:;.,1234567890"
 | 
						|
 | 
						|
func randStringBytes(n int) string {
 | 
						|
	b := make([]byte, n)
 | 
						|
	for i := range b {
 | 
						|
		b[i] = letterBytes[rand.Intn(len(letterBytes))]
 | 
						|
	}
 | 
						|
	return string(b)
 | 
						|
}
 |