diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2023-02-19 21:11:12 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-02-25 18:26:14 +0100 |
commit | 498f6e268d4d2b0ad33b430f4ba1abe397d31496 (patch) | |
tree | f6f823f1a9e6ad2b41dc411ba0f2f0ce019b2f27 /ustream-mbedtls.h | |
parent | 9217ab46536353c7c792951b57163063f5ec7a3b (diff) | |
download | ustream-ssl-master.tar.gz |
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