Mattias Rönnblom
5f4ed3f058
eal: introduce random generator with upper bound
...
Add a function rte_rand_max() which generates an uniformly distributed
pseudo-random number less than a user-specified upper bound.
The commonly used pattern rte_rand() % SOME_VALUE creates biased
results (as in some values in the range are more frequently occurring
than others) if SOME_VALUE is not a power of 2.
Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2019-06-28 15:23:55 +02:00
..
2019-06-12 00:07:13 +09:00
2019-05-03 00:38:14 +02:00
2019-04-23 00:19:06 +02:00
2019-06-27 23:17:10 +02:00
2019-04-05 14:48:15 +02:00
2019-04-04 22:45:54 +02:00
2019-04-04 22:46:05 +02:00
2019-05-03 00:38:14 +02:00
2019-05-03 00:38:14 +02:00
2019-06-28 15:23:55 +02:00
2019-05-03 00:38:14 +02:00
2019-06-13 23:54:30 +09:00
2019-06-03 16:54:54 +02:00
2019-05-03 00:38:14 +02:00
2019-05-24 13:34:46 +02:00
2019-05-24 13:34:46 +02:00
2019-06-05 19:49:28 +02:00
2019-06-27 18:05:46 +02:00
2019-05-24 13:34:46 +02:00
2019-04-04 22:46:05 +02:00
2019-06-17 14:22:22 +03:00
2019-06-05 19:49:28 +02:00
2019-05-03 00:38:14 +02:00
2019-05-03 00:38:14 +02:00
2019-06-06 20:21:20 +09:00
2019-04-04 22:46:05 +02:00
2019-05-03 00:38:14 +02:00
2019-04-11 14:27:32 +02:00
2018-07-26 20:30:18 +02:00
2019-06-03 16:54:54 +02:00
2018-11-13 17:59:42 +01:00
2019-06-05 11:27:36 +02:00
2019-06-03 16:54:54 +02:00
2019-05-24 13:34:46 +02:00
2019-05-09 21:07:55 +02:00
2019-05-03 00:38:14 +02:00
2019-06-05 14:41:34 +02:00
2019-05-03 00:38:14 +02:00
2019-06-04 13:09:51 +02:00
2019-05-03 00:38:14 +02:00
2019-05-03 00:38:14 +02:00
2019-06-27 18:00:59 +02:00
2019-05-03 00:38:14 +02:00
2019-06-28 11:06:08 +02:00
2019-05-13 18:43:10 +02:00
2019-06-20 23:42:04 +02:00
2019-05-02 01:32:41 +02:00
2019-06-26 16:50:33 +02:00