From 8839b33f8c6c301036cf6f0d756e322c353db212 Mon Sep 17 00:00:00 2001 From: Sandro Date: Sat, 2 Mar 2024 02:29:49 +0100 Subject: [PATCH] Cleanup duplicated import --- agent/bitwarden/crypto/encstring.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/agent/bitwarden/crypto/encstring.go b/agent/bitwarden/crypto/encstring.go index f0b381f..18d8da3 100644 --- a/agent/bitwarden/crypto/encstring.go +++ b/agent/bitwarden/crypto/encstring.go @@ -6,7 +6,6 @@ import ( "crypto/cipher" "crypto/hmac" "crypto/rand" - cryptorand "crypto/rand" "crypto/rsa" "crypto/sha1" "crypto/sha256" @@ -196,7 +195,7 @@ func EncryptWith(data []byte, encType EncStringType, key SymmetricEncryptionKey) return s, err } s.IV = make([]byte, aes.BlockSize) - if _, err := io.ReadFull(cryptorand.Reader, s.IV); err != nil { + if _, err := io.ReadFull(rand.Reader, s.IV); err != nil { return s, err } s.CT = make([]byte, len(data))