]> git.baikalelectronics.ru Git - uboot.git/commit
tools: image-host.c: use random instead of rand
authorPhilippe Reynes <philippe.reynes@softathome.com>
Fri, 13 Nov 2020 15:37:46 +0000 (16:37 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000 (09:45 -0500)
commit0dd37ec3e763294d37074c6a694566bd7223be30
treec9f172e82f900d2ef7c68106897d6bed24ba07f1
parented52a5dd92b882fb160388de82ed8fcfc2e726be
tools: image-host.c: use random instead of rand

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@softathome.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/image-host.c