diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-12-13 22:59:31 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-12-13 22:59:31 +0100 |
commit | 74f7872f89dc8ecad500c5d5c4e03b4757f6418d (patch) | |
tree | 7b9f8a573c50009c9ad42a653fec8fac94557e1b /newlib/libc/stdlib/wcstod.c | |
parent | 80f4987f02e50721e4cc62f6d70bc602324d32ad (diff) | |
download | cygnal-74f7872f89dc8ecad500c5d5c4e03b4757f6418d.tar.gz cygnal-74f7872f89dc8ecad500c5d5c4e03b4757f6418d.tar.bz2 cygnal-74f7872f89dc8ecad500c5d5c4e03b4757f6418d.zip |
Rearrange RNG code slightly
In preparation of exporting getentropy/getrandom to userspace, rearrange
code a bit:
- Define RtlGenRandom in ntdll.h.
- Drop calls to getentropy in favor of RtlGenRandom (fhandler_socket,
fhandler_dev_random).
- Add try/except blocks in fhandler_dev_random to return EFAULT rather
than crashing if buffer pointer is invalid.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdlib/wcstod.c')
0 files changed, 0 insertions, 0 deletions