summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt/arc4random.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* back in september I did the large abstraction refactoring to allow thesederaadt2015-01-151-1/+2
| | | | other systems to fit into the same mold, so add copyright
* Move more OS-specific functionality to arc4random.h headers.bcook2014-07-201-1/+12
| | | | | | | | Move <sys/mman.h> and raise(SIGKILL) calls to OS-specific headers. On OpenBSD, move thread_private.h as well to arc4random.h. On Windows, use TerminateProcess on getentropy failure. ok deraadt@
* Change _rs_allocate so it can combine the two regions (rs and rsx)deraadt2014-07-191-14/+17
| | | | | | | | | | into one if a system has an awesome getentropy(). In that case it is valid to totally throw away the rsx state in the child. If the getentropy() is not very good and has a lazy reseed operation, this combining is a bad idea, and the reseed should probably continue to use the "something old, something new" mix. _rs_allocate() can accomodate either method, but not on the fly. ok matthew
* Seperate arc4random's os-dependent parts into static inline functions,deraadt2014-07-181-0/+46
making it much easier for libressl -portable to fill in the gaps. ok bcook beck