Signed-off-by: Simon Eisenmann <simon@struktur.de>
@ -26,7 +26,7 @@ import (
)
const (
dict = "abcdefghijklmnopqrstuvwxyz0123456789"
dict = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW0123456789"
func RandomString(length int) string {
@ -35,7 +35,7 @@ type Rooms struct {
func (rooms Rooms) Post(r *http.Request) (int, interface{}) {
name := RandomString(9)
name := RandomString(11)
return 200, &Room{name, fmt.Sprintf("/%s", name)}
}