INNER CODE UNIT · Go

init

iximiuz/cdebug · main.go:26

func init() {
	var buf [8]byte
	if _, err := cryptorand.Read(buf[:]); err == nil {
		mathrand.Seed(int64(binary.LittleEndian.Uint64(buf[:])))
	} else {
		mathrand.Seed(time.Now().UnixNano())
	}
}

func main() {
	stdin, stdout, stderr := term.StdStreams()
	cli := cliutil.NewCLI(stdin, stdout, stderr)

	var logLevel string
	logrus.SetOutput(cli.ErrorStream())

	cmd := &cobra.Command{
		Use:     "cdebug [OPTIONS] COMMAND [ARG...]",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…