Skip to content

Helper library to generate a random sequences for various purposes

License

Notifications You must be signed in to change notification settings

teran/go-random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-random

Test & Build status Go Report Card Go Reference

Helper library to generate a random sequences for various purposes

Usage example

package main

import (
    "fmt"

    "github.com/teran/go-random"
)

func main() {
    fmt.Printf("New password: %s\n", random.String(random.All, 10))
}

Go version warning

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

About

Helper library to generate a random sequences for various purposes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages