Simple secure random string generation for golang.
The package provides a single function:
func New(n int) (string, error)
package main
import (
"fmt"
srand "github.com/myENA/secureRandom"
)
func main() {
s, err := srand.New(16)
fmt.Println(s, err)
}
Please see the code, simple cli in rands
and test case for more information.