Hauke Mehrtens d1893f1c88 px5g-mbedtls: Use getrandom()
Instead of accessing /dev/urandom use the getrandom syscall. This way we
do not have to keep the file open all the time.
This also fixes a compile error with glibc:

--------
px5g-mbedtls.c: In function '_urandom':
px5g-mbedtls.c:48:9: error: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Werror=unused-result]
   48 |         read(urandom_fd, out, len);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--------

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-01-28 22:26:06 +01:00
..
2019-12-23 00:22:07 +01:00
2023-01-07 17:22:54 +01:00
2019-10-19 12:49:11 +02:00
2022-09-06 16:36:42 +01:00
2022-05-01 00:42:30 +02:00
2022-10-22 19:55:52 +02:00
2021-12-13 13:48:08 +01:00
2021-10-31 13:02:49 +00:00
2023-01-21 01:02:23 +01:00
2023-01-07 17:18:41 +01:00