rte_rand() bit 31 and 63 are always zero
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: [email protected]
Reporter: [email protected]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.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.