Speed up CryptoUtilsTest 23/90523/3
authorJim Hahn <jrh3@att.com>
Wed, 26 Jun 2019 13:27:51 +0000 (09:27 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 26 Jun 2019 13:44:36 +0000 (09:44 -0400)
commit4df5717012d5de386d39de391dbabbfd3d7d56a5
treec74ea50b006a890847fd4e42983cadc3532e39d5
parentd1ab0ec8471deeb7739206dc2ef0aac3dc5b245f
Speed up CryptoUtilsTest

CryptoUtilsTest runs slowly because the SecureRandom that CryptoUtils
uses to generate an "iv" takes a while to create enough randomness.
However, as the "iv" is only used as a "salt", it is not necessary
to use SecureRandom; the values generated by Random are sufficient.

Change-Id: I1f3b03b85d28852a7969d3a83802a2691308caa5
Issue-ID: POLICY-1791
Signed-off-by: Jim Hahn <jrh3@att.com>
utils/src/main/java/org/onap/policy/common/utils/security/CryptoUtils.java
utils/src/test/java/org/onap/policy/common/utils/security/CryptoUtilsTest.java