[PATCH] tools: image-host.c: use random instead of rand

Simon Glass sjg at chromium.org
Tue Nov 17 00:53:11 CET 2020


On Fri, 13 Nov 2020 at 08:38, Philippe Reynes
<philippe.reynes at softathome.com> wrote:
>
> According to the manpage of rand, it is recommended
> to use random instead of rand. This commit updates
> the function get_random_data to use random.
>
> Reported-by: Coverity (CID: 312953)
> Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
> ---
>  tools/image-host.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list