app/testpmd: use better randomness for Tx split
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Thu, 21 Nov 2019 19:34:06 +0000 (01:04 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commit7392ad06f5263e33f1583365ef0532ab435fce38
tree07622f1bdae5273141faca4634d119e4b0d15a89
parent4c5b16999074a8b4d61a2564220147548afe959a
app/testpmd: use better randomness for Tx split

Use rte_rand() instead of random() for better randomness.

Coverity issue: 337666
Fixes: 79bec05b32b7 ("app/testpmd: add ability to split outgoing packets")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/txonly.c