Repository: commons-crypto Updated Branches: refs/heads/master 2e82a0b1c -> 297a968e0
Javadoc Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/297a968e Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/297a968e Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/297a968e Branch: refs/heads/master Commit: 297a968e0fb60501988a5616960aa34f39f7924d Parents: 2e82a0b Author: Sebb <s...@apache.org> Authored: Wed Jun 15 10:48:55 2016 +0100 Committer: Sebb <s...@apache.org> Committed: Wed Jun 15 10:48:55 2016 +0100 ---------------------------------------------------------------------- .../org/apache/commons/crypto/random/CryptoRandomFactory.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/297a968e/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java index df57cd8..e9b7a55 100644 --- a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java +++ b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java @@ -40,6 +40,11 @@ public class CryptoRandomFactory { /** * Gets a CryptoRandom instance for specified props. + * Uses the {@link #COMMONS_CRYPTO_SECURE_RANDOM_CLASSES_KEY} + * from the provided properties. + * If it is not set, then it checks the System properties. + * Failing that, it defaults to {@link JavaCryptoRandom} + * The properties are passed to the generated class. * * @param props the configuration properties. * @return CryptoRandom the cryptoRandom object.Null value will be returned