func createNewTicket(ticketType string) types.Ticket {
	c := 100
	b := make([]byte, c)
	for i := range b {
		b[i] = letterBytes[rand.Int63()%int64(len(letterBytes))]
	}
	return types.Ticket{
		Ticket: ticketType + "-" + string(b),
		Type:   ticketType,
	}
}
createNewTicket creates a new ticket
package security
import (
	"fmt"
	"math/rand"
	"github.com/matthewvalimaki/cas-server/storage"
	"github.com/matthewvalimaki/cas-server/tools"
	"github.com/matthewvalimaki/cas-server/types"
)
const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"