From: Dmitry Eremin-Solenikov <[email protected]>

RAND_pseudo_bytes() was deprecated in OpenSSL 1.1.0. It is recommended
to use RAND_bytes() instead.

Signed-off-by: Dmitry Eremin-Solenikov <[email protected]>
---
/** Email created from pull request 165 (lumag:improve-build-3)
 ** https://github.com/Linaro/odp/pull/165
 ** Patch: https://github.com/Linaro/odp/pull/165.patch
 ** Base sha: 360c1d34b52a2356619b9290811862b9de41de00
 ** Merge commit sha: b3c5b66f989f86f62c8d44471480599b93cac6c0
 **/
 platform/linux-generic/odp_crypto.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/platform/linux-generic/odp_crypto.c 
b/platform/linux-generic/odp_crypto.c
index 563e919e..c7da548a 100644
--- a/platform/linux-generic/odp_crypto.c
+++ b/platform/linux-generic/odp_crypto.c
@@ -1048,9 +1048,6 @@ int32_t odp_random_data(uint8_t *buf, uint32_t len, 
odp_random_kind_t kind)
 
        switch (kind) {
        case ODP_RANDOM_BASIC:
-               RAND_pseudo_bytes(buf, len);
-               return len;
-
        case ODP_RANDOM_CRYPTO:
                rc = RAND_bytes(buf, len);
                return (1 == rc) ? (int)len /*success*/: -1 /*failure*/;

Reply via email to