[dpdk-dev] [Bug 276] rte_rand() bit 31 and 63 are always zero

From: <hidden>
Date: 2019-05-06 13:00:50

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@dpdk.org
          Reporter: mattias.ronnblom@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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help