diff --git a/helpers.go b/helpers.go index 8c22ed5..c3a4246 100644 --- a/helpers.go +++ b/helpers.go @@ -243,10 +243,5 @@ func getID() string { } func getShortID() string { - id := make([]byte, defaultShortIDBytes) - _, err := rand.Read(id) - if err != nil { - log.Fatal(err) - } - return fmt.Sprintf("%x", id[0:4]) + return uuid.NewString()[:4] }