Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

teran/go-random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-random

This library is moved to go-collection repository for unified experience and simplifying maintenance process. This repository will not be deleted for backward compatibility.

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

 
 
 

Contributors

Languages