Re: [lng-odp] [API-NEXT PATCHv7 1/3] api: random: add explicit controls over random data

2016-12-08 Thread Bill Fischofer
On Thu, Dec 8, 2016 at 2:05 AM, Savolainen, Petri (Nokia - FI/Espoo) wrote: >> /** >> + * Random kind selector >> + * >> + * The kind of random denotes the statistical quality of the random data >> + * returned. Basic random simply appears uniformly

Re: [lng-odp] [API-NEXT PATCHv7 1/3] api: random: add explicit controls over random data

2016-12-08 Thread Savolainen, Petri (Nokia - FI/Espoo)
> /** > + * Random kind selector > + * > + * The kind of random denotes the statistical quality of the random data > + * returned. Basic random simply appears uniformly distributed, > Cryptographic > + * random is statistically random and suitable for use by cryptographic > + * functions. True

[lng-odp] [API-NEXT PATCHv7 1/3] api: random: add explicit controls over random data

2016-12-07 Thread Bill Fischofer
Rework the odp_random_data() API to replace the use_entropy with an explicit odp_random_kind parameter that controls the type of random desired. Two new APIs are also introduced: - odp_random_max_kind() returns the maximum kind of random data available - odp_random_repeatable_data() permits