Skip to content

Commit c0b2c08

Browse files
committed
fix(lint): rename rand variable to avoid import shadowing
1 parent 4c37d6f commit c0b2c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/agentssh/agentssh.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,8 +1345,8 @@ func CoderSigner(seed int64, algorithm string) (gossh.Signer, error) {
13451345
case "ed25519":
13461346
// Generate deterministic Ed25519 key
13471347
// nolint: gosec
1348-
rand := rand.New(rand.NewSource(seed))
1349-
_, privateKey, err := ed25519.GenerateKey(rand)
1348+
rng := rand.New(rand.NewSource(seed))
1349+
_, privateKey, err := ed25519.GenerateKey(rng)
13501350
if err != nil {
13511351
return nil, err
13521352
}

0 commit comments

Comments
 (0)