package id

import (
    "time"
    "strconv"
    "math/rand"
)

func Custom(id string) string {
    return id
}

func Unique() string {
	timestamp := time.Now().UnixNano() / 1000

	choices := []string{"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"}
	hexString := strconv.FormatInt(timestamp, 16)

	for i := 0; i < 7; i++ {
		hexString += choices[rand.Intn(len(choices))]
	}
	return hexString
}
