summaryrefslogtreecommitdiff
path: root/src/getrandom_linux.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove linux getrandom and use C++ stdlib insteadTatsuhiro Tsujikawa2018-11-251-98/+0
|
* Fix compile warningTatsuhiro Tsujikawa2018-05-171-0/+1
|
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-2/+3
|
* Comment getrandom code a bitNils Maier2015-03-181-1/+19
|
* Handle linux getrandom returning EINTR on interrupts/signalsNils Maier2015-02-071-2/+30
| | | | | | | Also handle ENOTSUP failures where aria2 was build with linux headers newer than the actual running kernel. Fixes GH-336
* Revise getRandom facilitiesNils Maier2015-01-201-0/+50
Use one of the following to provide random bytes: - Windows CryptGenRandom - Linux getrandom (syscall interface to urandom, without nasty corner cases such as file descriptor exhaustion or re-linked /dev/urandom) - std::device_random (C++ random device, which usually will be urandom) This also equalizes util::getRandom and SimpleRandomizer (the former will now use the latter) instead of having essentially two different PRNG interfaces with potentially different quality. Closes GH-320