Details
-
Sub-task
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
fs-encryption (HADOOP-10150 and HDFS-6134)
-
None
Description
Following suit with the Java Random implementations, it'd be better if we switched CryptoCodec#generateSecureRandom to take a byte[] for parity.
Also, let's document that this method needs to be thread-safe, which is an important consideration for CryptoCodec implementations.