summaryrefslogtreecommitdiff
path: root/ustream-mbedtls.h
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2023-02-19 21:11:12 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2023-02-25 18:26:14 +0100
commit498f6e268d4d2b0ad33b430f4ba1abe397d31496 (patch)
treef6f823f1a9e6ad2b41dc411ba0f2f0ce019b2f27 /ustream-mbedtls.h
parent9217ab46536353c7c792951b57163063f5ec7a3b (diff)
downloadustream-ssl-master.tar.gz
ustream-mbedtls: Use getrandom() instead of /dev/urandomHEADmaster
Instead of keeping a file descriptor open just use the getrandom syscall to get random data. This is supported by musl libc, glibc and Linux for some time now. This also improves the error handling in case this function returns not as many bytes as expected. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Reviewed-by: Torsten Duwe <duwe@lst.de>
Diffstat (limited to 'ustream-mbedtls.h')
0 files changed, 0 insertions, 0 deletions