Random number generator seed doesn't have enough entropy GO-S1033
Security
Major
2 years ago2 years old
Time based seeds have insufficient entropy
20// input data in custom size (height and width).
21func RandomImageWithSize(size int, data []byte) (image.Image, error) {
22	randExtent := len(palette.WebSafe) - 32
23	rand.Seed(time.Now().UnixNano())24	colorIndex := rand.Intn(randExtent)
25	backColorIndex := colorIndex - 1
26	if backColorIndex < 0 {