[v2,0/2] fixes to rte_random for non-EAL threads

Message ID 20230907152456.20570-1-stephen@networkplumber.org (mailing list archive)
Headers
Series fixes to rte_random for non-EAL threads |

Message

Stephen Hemminger Sept. 7, 2023, 3:24 p.m. UTC
  While examining the code for rte_random, noticed a couple of
existing bugs around use of rte_rand() by non-EAL threads

Stephen Hemminger (2):
  random: initialize the random state for non-EAL threads
  random: make rte_rand() thread safe for non-EAL threads

 lib/eal/common/rte_random.c | 56 ++++++++++++++++++++++++-------------
 1 file changed, 37 insertions(+), 19 deletions(-)