eal: use 32-bit RDSEED to allow 32-bit x86 usage
authorMattias Rönnblom <mattias.ronnblom@ericsson.com>
Fri, 28 Jun 2019 21:08:46 +0000 (23:08 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 29 Jun 2019 12:25:14 +0000 (14:25 +0200)
commite4dd3bddd1953a70302243a51526917f986d471f
tree2ed155017b678ee5931d6861b50ae855217225eb
parent5f4ed3f058493552658e914815f58e784755a1b3
eal: use 32-bit RDSEED to allow 32-bit x86 usage

When seeding the pseudo-random number generator, replace the 64-bit
RDSEED with two 32-bit RDSEED instructions to allow building and
running on 32-bit x86.

Fixes: faf8fd252785 ("eal: improve entropy for initial PRNG seed")

Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
lib/librte_eal/common/rte_random.c