13 lines
176 B
Go
13 lines
176 B
Go
package generator
|
|
|
|
import (
|
|
"crypto/rand"
|
|
"encoding/hex"
|
|
)
|
|
|
|
func RandomInt64ID() string {
|
|
data := [8]byte{}
|
|
_, _ = rand.Read(data[:])
|
|
return hex.EncodeToString(data[:])
|
|
}
|