1
0
Fork 0
forked from mirror/openwrt
openwrt/package
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
..
base-files base-files: Remove nand.sh dependency from emmc upgrade 2023-01-21 01:02:23 +01:00
boot ath79: add support for Senao Engenius EWS660AP 2023-01-28 20:34:00 +01:00
devel trace-cmd: update to v3.1.6 2023-01-13 22:02:20 +01:00
firmware linux-firmware: update to 20230117 2023-01-26 22:15:43 +01:00
kernel kernel: add kmod-lib-842 2023-01-28 21:19:17 +01:00
libs openssl: fix VIA Padlock AES-192 and 256 encryption 2023-01-22 01:33:33 +01:00
network ethtool: update to 6.1 2023-01-28 20:26:22 +01:00
system ubus: update to version 2022-06-15 2023-01-27 11:04:07 +01:00
utils px5g-mbedtls: Use getrandom() 2023-01-28 22:26:06 +01:00
Makefile