aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2022-12-28 00:11:00 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2023-01-28 22:26:06 +0100
commitd1893f1c889b991746f6546b98f009b4125d5046 (patch)
tree4328a3edc6ef5c4217da052ead834f44516d4ecf /rules.mk
parent39e4f03fd335d5b5d1259d74fc3f00ad09e7796c (diff)
downloadupstream-d1893f1c889b991746f6546b98f009b4125d5046.tar.gz
upstream-d1893f1c889b991746f6546b98f009b4125d5046.tar.bz2
upstream-d1893f1c889b991746f6546b98f009b4125d5046.zip
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>
Diffstat (limited to 'rules.mk')
0 files changed, 0 insertions, 0 deletions