Skip to content

Commit 6d908f7

Browse files
committed
suppress warning
1 parent 57c51dd commit 6d908f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/identity/identity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ func encryptAEAD(symmetricKey []byte, plaintext []byte) ([]byte, error) {
317317
return nil, fmt.Errorf("failed to create AES cipher: %w", err)
318318
}
319319

320-
// Generate a random 12-byte nonce
320+
// Generate a random 12-byte nonce (not hardcoded, populated by crypto/rand)
321321
nonce := make([]byte, 12)
322322
if _, err := io.ReadFull(rand.Reader, nonce); err != nil {
323323
return nil, fmt.Errorf("failed to generate nonce: %w", err)

0 commit comments

Comments
 (0)