Helper library to generate a random sequences for various purposes
package main
import (
"fmt"
"github.com/teran/go-random"
)
func main() {
fmt.Printf("New password: %s\n", random.String(random.All, 10))
}
The library is designed to be used with Go 1.20+, usage with prior versions if Go will cause insecure random string generation!
More detail about math/rand Go package