We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c0094a commit 80a314dCopy full SHA for 80a314d
1 file changed
internal/appcore/reseed.go
@@ -54,8 +54,8 @@ func (a *AppCore) ExportReseed() (string, error) {
54
// Используем crypto/rand для перемешивания (чтобы не использовать слабый math/rand)
55
// Хотя math/rand здесь не критичен, gosec требует crypto/rand
56
for i := len(files) - 1; i > 0; i-- {
57
- n, err := rand.Int(rand.Reader, big.NewInt(int64(i+1)))
58
- if err != nil {
+ n, errRand := rand.Int(rand.Reader, big.NewInt(int64(i+1)))
+ if errRand != nil {
59
continue // Should not happen with rand.Reader
60
}
61
j := int(n.Int64())
0 commit comments