blob: 35715f9a425afe68da7bd9310d0d75840dcf6033 [file] [log] [blame]
package random
import (
"crypto/rand"
"encoding/hex"
)
func UsernameSuffix() string {
bytes := make([]byte, 2)
_, _ = rand.Read(bytes)
return hex.EncodeToString(bytes)
}
func Username() string {
bytes := make([]byte, 6)
_, _ = rand.Read(bytes)
return hex.EncodeToString(bytes)
}