rand not used properly
vazha opened this issue · comments
Vazha commented
rand not used properly in crm.go
id = append(id, keyspace[rand.Intn(len(keyspace))]) always produced the same sequence.
Can be used as follow:
s := rand.NewSource(time.Now().UnixNano())
r := rand.New(s)
id = append(id, keyspace[r.Intn(len(keyspace))])
Sam Morrison commented
Ok thanks. Wanna make a PR?
Best regards,
schmorrison
Sam Morrison commented
Closed by #17