示例#1
0
文件: internet.go 项目: jalil/faker
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()
}