Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 405 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 405 Bytes

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)