[
https://issues.apache.org/jira/browse/HADOOP-10713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14040052#comment-14040052
]
Yi Liu commented on HADOOP-10713:
---------------------------------
Committed to branch.
> Refactor CryptoCodec#generateSecureRandom to take a byte[]
> ----------------------------------------------------------
>
> Key: HADOOP-10713
> URL: https://issues.apache.org/jira/browse/HADOOP-10713
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: security
> Affects Versions: fs-encryption (HADOOP-10150 and HDFS-6134)
> Reporter: Andrew Wang
> Assignee: Andrew Wang
> Priority: Trivial
> Fix For: fs-encryption (HADOOP-10150 and HDFS-6134)
>
> Attachments: HADOOP-10713.001.patch, HADOOP-10713.002.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)