diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2025-02-11 14:55:22 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-02-18 12:30:32 -0600 |
commit | 50e8089c1de107137c7a30fd5691ebd449f42e2d (patch) | |
tree | 614d639171a8ad4363189ee5093956056db0caa5 /lib/mbedtls/sha256.c | |
parent | e93f11148ae42bbb805077a48ab8cb63137a3a17 (diff) |
tools: use cryptographically safe RNG
The PRNG implementing the random() function only has 2^31 states and
therefore is unsafe to use for cryptography. Use arc4random() instead.
Fixes: cc34f04efd63 ("tools: image-host.c: use random instead of rand")
Addresses-Coverity-ID: 312953 Calling risky function
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib/mbedtls/sha256.c')
0 files changed, 0 insertions, 0 deletions