2022-04-15 09:42:07 +02:00
|
|
|
package rnd
|
|
|
|
|
|
|
|
import (
|
2022-06-16 18:59:03 +02:00
|
|
|
"github.com/google/uuid"
|
2022-04-15 09:42:07 +02:00
|
|
|
)
|
|
|
|
|
2022-06-16 18:59:03 +02:00
|
|
|
// UUID returns a random string based on RFC 4122 (UUID Version 4) or panics.
|
|
|
|
//
|
|
|
|
// The strength of the UUID depends on the "crypto/rand" package.
|
2022-04-15 09:42:07 +02:00
|
|
|
func UUID() string {
|
2022-06-16 18:59:03 +02:00
|
|
|
return uuid.NewString()
|
2022-04-15 09:42:07 +02:00
|
|
|
}
|