sorare/mutations/random.go

13 lines
155 B
Go

package mutations
import (
"crypto/rand"
"fmt"
)
func GetRandomId() string {
b := make([]byte, 8)
_, _ = rand.Read(b)
return fmt.Sprintf("%x", b)
}