Re: [RFT v2 1/3] random: add rte_rand_float()

2022-05-25 Thread Stephen Hemminger
On Wed, 25 May 2022 14:45:37 + Mattias Rönnblom wrote: > I would call it something else than "float", in particular since it > doesn't return "float" but a "double" type floating point value. > > rte_drand() maybe? Short, but might be confused with rte_rand(), given > the visual similarity

Re: [RFT v2 1/3] random: add rte_rand_float()

2022-05-25 Thread Stephen Hemminger
On Wed, 25 May 2022 14:45:37 + Mattias Rönnblom wrote: > On 2022-05-25 00:18, Stephen Hemminger wrote: > > The PIE code and other applications can benefit from having a > > fast way to get a random floating point value. This new function > > is equivalent to erand48_r in the standard library.

RE: [RFT v2 1/3] random: add rte_rand_float()

2022-05-25 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > Sent: Wednesday, 25 May 2022 16.46 > > On 2022-05-25 00:18, Stephen Hemminger wrote: > > The PIE code and other applications can benefit from having a > > fast way to get a random floating point value. This new function > > is equiv

Re: [RFT v2 1/3] random: add rte_rand_float()

2022-05-25 Thread Mattias Rönnblom
On 2022-05-25 00:18, Stephen Hemminger wrote: > The PIE code and other applications can benefit from having a > fast way to get a random floating point value. This new function > is equivalent to erand48_r in the standard library. > Seems like a good addition to the API. > Signed-off-by: Stephen

Re: [RFT v2 1/3] random: add rte_rand_float()

2022-05-25 Thread Ray Kinsella
Stephen Hemminger writes: > The PIE code and other applications can benefit from having a > fast way to get a random floating point value. This new function > is equivalent to erand48_r in the standard library. > > Signed-off-by: Stephen Hemminger > --- > app/test/test_rand_perf.c