freebsd-dev/sys/dev/random
Ed Schouten 707d98fe2f Implement the CloudABI random_get() system call.
The random_get() system call works similar to getentropy()/getrandom()
on OpenBSD/Linux. It fills a buffer with random data.

This change introduces a new function, read_random_uio(), that is used
to implement read() on the random devices. We can call into this
function from within the CloudABI compatibility layer.

Approved by:	secteam
Reviewed by:	jmg, markm, wblock
Obtained from:	https://github.com/NuxiNL/freebsd
Differential Revision:	https://reviews.freebsd.org/D3053
2015-07-14 18:45:15 +00:00
..
build.sh * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
fortuna.c * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
fortuna.h Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
hash.c Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
hash.h * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
ivy.c Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
nehemiah.c Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
random_harvestq.c * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
random_harvestq.h Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
randomdev_none.c Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
randomdev.c Implement the CloudABI random_get() system call. 2015-07-14 18:45:15 +00:00
randomdev.h * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
uint128.h Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
unit_test.c * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
unit_test.h * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
yarrow.c * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
yarrow.h Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00