Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc0b2c08

Browse files
committed
fix(lint): rename rand variable to avoid import shadowing
1 parent4c37d6f commitc0b2c08

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
iferr!=nil {
13511351
returnnil,err
13521352
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp