]> git.baikalelectronics.ru Git - kernel.git/commit
random: make /dev/random be almost like /dev/urandom
authorAndy Lutomirski <luto@kernel.org>
Mon, 23 Dec 2019 08:20:48 +0000 (00:20 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 7 Jan 2020 21:07:01 +0000 (16:07 -0500)
commit961b3c3c21e118283ce5f31a97532f4c1ad7ff94
treee08db1b678586df4bea0b395dc498f13ac3f3e92
parent1ede69c1fcd92cbad008da3e75a8de3ff7bb188e
random: make /dev/random be almost like /dev/urandom

This patch changes the read semantics of /dev/random to be the same
as /dev/urandom except that reads will block until the CRNG is
ready.

None of the cleanups that this enables have been done yet.  As a
result, this gives a warning about an unused function.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/5e6ac8831c6cf2e56a7a4b39616d1732b2bdd06c.1577088521.git.luto@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c