mapleFU commented on code in PR #43413:
URL: https://github.com/apache/arrow/pull/43413#discussion_r1690788276


##########
cpp/src/parquet/encryption/crypto_factory.cc:
##########
@@ -72,8 +72,7 @@ std::shared_ptr<FileEncryptionProperties> 
CryptoFactory::GetFileEncryptionProper
   int dek_length = dek_length_bits / 8;
 
   std::string footer_key(dek_length, '\0');
-  RandBytes(reinterpret_cast<uint8_t*>(&footer_key[0]),
-            static_cast<int>(footer_key.size()));
+  RandBytes(reinterpret_cast<uint8_t*>(&footer_key[0]), footer_key.size());

Review Comment:
   `footer_key.data()`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to