Skip to content

Commit 4c37d6f

Browse files
committed
fix(lint): suppress gosec warning for deterministic Ed25519 key generation
1 parent 0d2172e commit 4c37d6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

agent/agentssh/agentssh.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,6 +1344,7 @@ func CoderSigner(seed int64, algorithm string) (gossh.Signer, error) {
13441344
switch algorithm {
13451345
case "ed25519":
13461346
// Generate deterministic Ed25519 key
1347+
// nolint: gosec
13471348
rand := rand.New(rand.NewSource(seed))
13481349
_, privateKey, err := ed25519.GenerateKey(rand)
13491350
if err != nil {

0 commit comments

Comments
 (0)