Skip to content

Commit

Permalink
odp_crypto (dpdk): RAND_pseudo_bytes is deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Josep Puigdemont <josep.puigdemont@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Yi He <yi.he@linaro.org>
  • Loading branch information
Josep Puigdemont authored and Yi He committed Jan 29, 2018
1 parent 993e0cf commit 5251bda
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions platform/linux-dpdk/odp_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1134,9 +1134,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*/;
Expand Down

0 comments on commit 5251bda

Please sign in to comment.