From ad623b1f71f0808916e513437246a0fb36174d5b Mon Sep 17 00:00:00 2001 From: Sergio Gonzalez Monroy Date: Wed, 1 Feb 2017 15:23:12 +0000 Subject: dpdk: fix crypto coverity warning Change-Id: I165b64fdc12dd2936df1958348e93b709ce0e784 Signed-off-by: Sergio Gonzalez Monroy --- src/vnet/devices/dpdk/ipsec/esp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vnet/devices/dpdk/ipsec/esp.h b/src/vnet/devices/dpdk/ipsec/esp.h index d414d67961e..d0b276189c8 100644 --- a/src/vnet/devices/dpdk/ipsec/esp.h +++ b/src/vnet/devices/dpdk/ipsec/esp.h @@ -186,7 +186,8 @@ create_sym_sess (ipsec_sa_t * sa, crypto_sa_session_t * sa_sess, } else { - sa->salt = (u32) rand (); + u32 seed = (u32) clib_cpu_time_now (); + sa->salt = random_u32 (&seed); } cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER; -- cgit 1.2.3-korg