Skip to content

Commit

Permalink
Merge pull request #127 from SuperSandro2000/patch-1
Browse files Browse the repository at this point in the history
Cleanup duplicated import
  • Loading branch information
quexten committed Mar 2, 2024
2 parents 23a336e + 8839b33 commit ce6cb05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions agent/bitwarden/crypto/encstring.go
Expand Up @@ -6,7 +6,6 @@ import (
"crypto/cipher"
"crypto/hmac"
"crypto/rand"
cryptorand "crypto/rand"
"crypto/rsa"
"crypto/sha1"
"crypto/sha256"
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit ce6cb05

Please sign in to comment.