Skip to content

Commit 80a314d

Browse files
author
TeleGhost Dev
committed
fix(linter): fix shadow error in reseed.go
1 parent 0c0094a commit 80a314d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/appcore/reseed.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ func (a *AppCore) ExportReseed() (string, error) {
5454
// Используем crypto/rand для перемешивания (чтобы не использовать слабый math/rand)
5555
// Хотя math/rand здесь не критичен, gosec требует crypto/rand
5656
for i := len(files) - 1; i > 0; i-- {
57-
n, err := rand.Int(rand.Reader, big.NewInt(int64(i+1)))
58-
if err != nil {
57+
n, errRand := rand.Int(rand.Reader, big.NewInt(int64(i+1)))
58+
if errRand != nil {
5959
continue // Should not happen with rand.Reader
6060
}
6161
j := int(n.Int64())

0 commit comments

Comments
 (0)