Skip to content

KarpelesLab/rndstr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

Simple random string generator

This allows generating random strings very easily.

	fmt.Printf("Random string: %s\n", rndstr.Simple(16, rndstr.Alnum))

	// or to generate a secure string, using crypto/rand
	secureStr := rndstr.SimpleReader(16, rndstr.Alnum, rand.Reader)