Пример #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, "")
}
Пример #2
0
Файл: app.go Проект: jalil/faker
func init() {
	faker.Seeder()
}