Exemplo n.º 1
0
func Password() string {
	//Need to make cleaner
	faker.Seeder()
	passwd := []byte(ALPHA)
	words := make([]string, 8)
	passwdlen := len(ALPHA)
	for i := 0; i < 9; i++ {
		words = append(words, string(passwd[rand.Intn(passwdlen)]))
	}
	return strings.Join(words, "")
}
Exemplo n.º 2
0
Arquivo: app.go Projeto: jalil/faker
func init() {
	faker.Seeder()
}