summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2017-02-01 15:23:12 +0000
committerDamjan Marion <dmarion.lists@gmail.com>2017-02-02 12:04:01 +0000
commitad623b1f71f0808916e513437246a0fb36174d5b (patch)
treec66ff90583aa8f2eaca1cdccab2d52a6f498afc9
parentdccbee391462c1fb8f550dfbc3aa535109ca428b (diff)
dpdk: fix crypto coverity warning
Change-Id: I165b64fdc12dd2936df1958348e93b709ce0e784 Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
-rw-r--r--src/vnet/devices/dpdk/ipsec/esp.h3
1 files changed, 2 insertions, 1 deletions
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;