Fix G404 gosec lint error

This commit is contained in:
Deluan
2024-05-19 21:55:19 -04:00
parent bcaa180fc7
commit b2ecc1d16f
6 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ func (s Share) CoverArtID() ArtworkID {
case "artist":
return Artist{ID: ids[0]}.CoverArtID()
}
rnd := random.Int64(len(s.Tracks))
rnd := random.Int64N(len(s.Tracks))
return s.Tracks[rnd].CoverArtID()
}