On 12/5/2024 6:57 PM, David Marchand wrote:
The RNG is documented as being seeded as part of EAL init./** * Seed the pseudo-random generator. * * The generator is automatically seeded by the EAL init with a timer * value. It may need to be re-seeded by the user with a real random * value. * ... Move the initialisation (seeding) helper out of a constructor and call it explicitly from rte_eal_init() as it was done before commit 3f002f069612 ("eal: replace libc-based random generation with LFSR"). This also moves the unconditional lcore variable allocation out of a constructor. While at it, mark local symbol rand_state as static. Fixes: 29c39cd3d54d ("random: keep PRNG state in lcore variable") Cc: [email protected] Signed-off-by: David Marchand <[email protected]> ---
Acked-by: Anatoly Burakov <[email protected]> -- Thanks, Anatoly

