divideprojects / Alita_Robot

Audit the random number generation source (rand) GSC-G404
Security
Minor
2 months agoa year old
Use of weak random number generator (math/rand instead of crypto/rand)
 810	if len(rstrings) == 1 {
 811		sent = rstrings[0]
 812	} else {
 813		n := rand.Int() % len(rstrings) 814		sent = rstrings[n]
 815	}
 816
Use of weak random number generator (math/rand instead of crypto/rand)
 729	if len(rstrings) == 1 {
 730		sent = rstrings[0]
 731	} else {
 732		n := rand.Int() % len(rstrings) 733		sent = rstrings[n]
 734	}
 735