divideprojects / Alita_Robot

Random number generator seed doesn't have enough entropy GO-S1033
Security
Major
2 months agoa year old
Time based seeds have insufficient entropy
 805	buttons = noteData.Buttons
 806
 807	// Random data goes there
 808	rand.Seed(time.Now().Unix()) 809	rstrings := strings.Split(noteData.NoteContent, "%%%")
 810	if len(rstrings) == 1 {
 811		sent = rstrings[0]
Time based seeds have insufficient entropy
 724	buttons = tmpfilterData.Buttons
 725
 726	// Random data goes there
 727	rand.Seed(time.Now().Unix()) 728	rstrings := strings.Split(tmpfilterData.FilterReply, "%%%")
 729	if len(rstrings) == 1 {
 730		sent = rstrings[0]