[PATCH v2 2/2] rng: add dm_rng_read_default() helper

Simon Glass sjg at chromium.org
Thu Nov 2 23:46:03 CET 2023


Hi Alexey,

On Thu, 2 Nov 2023 at 12:57, Alexey Romanov <avromanov at salutedevices.com> wrote:
>
> Add dm_rng_read_default() function, which obtain a series
> of random bytes. In some cases, such function would be
> useful because it allows the caller to abstract away from
> RNG device.

It should not do that. It should create a RNG device for its needs.

>
> Signed-off-by: Alexey Romanov <avromanov at salutedevices.com>
> ---
>  drivers/rng/rng-uclass.c | 18 ++++++++++++++++++
>  include/rng.h            | 10 ++++++++++
>  2 files changed, 28 insertions(+)

Regards,
Simon


More information about the U-Boot mailing list