Heinrich Schuchardt 50e8089c1d 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>
2025-02-18 12:30:32 -06:00
..
2024-10-21 20:51:23 -06:00
2024-07-15 12:12:18 -06:00
2019-07-29 00:20:31 +02:00
2024-09-12 17:35:37 +02:00
2021-01-13 02:38:00 +01:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2022-01-19 18:11:34 +01:00
2023-01-27 12:51:26 -05:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2025-02-03 16:00:42 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2025-01-26 11:35:46 -06:00
2025-01-18 08:28:44 -06:00
2019-11-04 18:15:32 -07:00