mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-27 20:39:53 +01:00
Fix G404 gosec lint error
This commit is contained in:
parent
bcaa180fc7
commit
b2ecc1d16f
6 changed files with 20 additions and 8 deletions
|
|
@ -51,7 +51,7 @@ func (h *Handler) getRandomImage(ctx context.Context) (string, error) {
|
|||
if len(list) == 0 {
|
||||
return "", errors.New("no images available")
|
||||
}
|
||||
rnd := random.Int64(len(list))
|
||||
rnd := random.Int64N(len(list))
|
||||
return list[rnd], nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue