[PATCH] random: clarify PRNG MT safety guarantees
David Marchand
david.marchand at redhat.com
Tue Oct 10 11:40:17 CEST 2023
On Wed, Oct 4, 2023 at 2:06 PM Morten Brørup <mb at smartsharesystems.com> wrote:
>
> > From: Mattias Rönnblom [mailto:mattias.ronnblom at ericsson.com]
> > Sent: Wednesday, 4 October 2023 12.55
> random: clarify PRNG MT safety guarantees
> >
> > Clarify MT safety guarantees for unregistered non-EAL threads calling
> > PRNG functions in rte_random.h.
> >
> > Clarify that rte_srand() is not MT safe in regards to calls to
> > rte_rand_max() and rte_drand().
> >
> > Suggested-by: Stephen Hemminger <stephen at networkplumber.org>
> > Signed-off-by: Mattias Rönnblom <mattias.ronnblom at ericsson.com>
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
Applied, thanks Mattias.
--
David Marchand
More information about the dev
mailing list