X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest-pmd%2Ftxonly.c;fp=app%2Ftest-pmd%2Ftxonly.c;h=3caf281cb813e899db706d4101db054546071fad;hb=7392ad06f5263e33f1583365ef0532ab435fce38;hp=539043c34745d1311c236ffc11044543c6fe0a17;hpb=4c5b16999074a8b4d61a2564220147548afe959a;p=dpdk.git diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c index 539043c347..3caf281cb8 100644 --- a/app/test-pmd/txonly.c +++ b/app/test-pmd/txonly.c @@ -159,7 +159,7 @@ pkt_burst_prepare(struct rte_mbuf *pkt, struct rte_mempool *mbp, uint8_t i; if (unlikely(tx_pkt_split == TX_PKT_SPLIT_RND)) - nb_segs = random() % tx_pkt_nb_segs + 1; + nb_segs = rte_rand() % tx_pkt_nb_segs + 1; else nb_segs = tx_pkt_nb_segs;