summaryrefslogtreecommitdiff
path: root/src/arc4random.h
AgeCommit message (Collapse)AuthorFilesLines
2018-05-21Add Windows support for getentropy() and arc4random()Guillem Jover1-0/+2
Import from OpenBSD.
2018-05-21Update arc4random() headers from OpenBSDGuillem Jover1-0/+2
Split Linux support into its own header separate from the generic Unix to fix a Linux-specific issue with clone(). Reset rsp to NULL on failure.
2015-12-07Add missing copyright and license headersGuillem Jover1-0/+26
2015-12-02Unify most arc4random Unix hooks into a single fileGuillem Jover1-16/+2
The Unix hook should work for most Unix-like systems, move glibc specific code there and a FreeBSd specific comment, and remove the rest. Also change the code to always fallback to use the generic Unix code. This should cover GNU/Hurd and GNU/kFreeBSD among others.
2015-11-30Update arc4random module from OpenBSD and LibreSSLGuillem Jover1-0/+29
Rework arc4random_stir() and arc4random_addrandom() code over the new internal API, and documentation in the man page. Adapt the code to the local build system. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=85827