sorare/mutations/random.go

13 lines
155 B
Go
Raw Normal View History

2024-03-08 10:48:21 +00:00
package mutations
import (
"crypto/rand"
"fmt"
)
func GetRandomId() string {
b := make([]byte, 8)
_, _ = rand.Read(b)
return fmt.Sprintf("%x", b)
}