switch from math/rand to crypto/rand package

This commit is contained in:
itchyny 2023-04-09 12:25:22 +09:00
parent 49d37b4903
commit e81d936dd5
2 changed files with 7 additions and 9 deletions

View file

@ -4,12 +4,10 @@ import (
"errors"
"flag"
"fmt"
"math/rand"
"os"
"os/exec"
"runtime"
"strings"
"time"
_ "github.com/mattn/getwild"
"github.com/mattn/go-tty"
@ -23,10 +21,6 @@ const version = "0.1.4"
var revision = "HEAD"
func init() {
rand.Seed(time.Now().UnixNano())
}
func main() {
os.Exit(run(os.Args[1:]))
}