[dpdk-dev] [Bug 276] rte_rand() bit 31 and 63 are always zero
bugzilla at dpdk.org
bugzilla at dpdk.org
Mon May 6 15:00:47 CEST 2019
https://bugs.dpdk.org/show_bug.cgi?id=276
Bug ID: 276
Summary: rte_rand() bit 31 and 63 are always zero
Product: DPDK
Version: 19.05
Hardware: All
OS: All
Status: CONFIRMED
Severity: normal
Priority: Normal
Component: core
Assignee: dev at dpdk.org
Reporter: mattias.ronnblom at ericsson.com
Target Milestone: ---
rte_rand() is specified as returning a 64-bit pseudo-random number, but only
returns 62 bit worth of randomness.
The implementation uses two lrand48() calls, which each returns a 31-bit random
number. This results in bit 31 and 63 always being zero.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the dev
mailing list