Slide 31
Slide 31 text
/dev/[u]random
/dev/random and /dev/urandom use the same
code, sizes and entropy sources
static ssize_t random_read(struct file *file,
char __user *buf, size_t nbytes, loff_t *ppos)
extract_entropy_user(&blocking_pool, buf, nbytes);
static ssize_t urandom_read(struct file *file,
char __user *buf, size_t nbytes, loff_t *ppos)
extract_entropy_user(&nonblocking_pool, buf, nbytes);
hkps:/
/github.com/torvalds/linux/blob/85051e295/drivers/char/random.c