[RFT v2 1/3] random: add rte_rand_float()
Stephen Hemminger
stephen at networkplumber.org
Wed May 25 17:47:22 CEST 2022
On Wed, 25 May 2022 14:45:37 +0000
Mattias Rönnblom <mattias.ronnblom at ericsson.com> 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. I still I would still prefer that over
> rte_rand_double().
The corresponding standard library routine is drand48().
With that convention it would be rte_drand().
More information about the dev
mailing list