Commit 9aefae4
random: make /dev/random be almost like /dev/urandom
commit 30c08efec8884fb106b8e57094baa51bb4c44e32 upstream.
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>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent aa38e37 commit 9aefae4
1 file changed
Lines changed: 13 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | 357 | | |
359 | 358 | | |
360 | 359 | | |
| |||
804 | 803 | | |
805 | 804 | | |
806 | 805 | | |
807 | | - | |
808 | 806 | | |
809 | 807 | | |
810 | 808 | | |
| |||
1924 | 1922 | | |
1925 | 1923 | | |
1926 | 1924 | | |
1927 | | - | |
1928 | | - | |
1929 | | - | |
1930 | | - | |
1931 | | - | |
1932 | | - | |
1933 | | - | |
1934 | | - | |
1935 | | - | |
1936 | | - | |
1937 | | - | |
1938 | | - | |
1939 | | - | |
1940 | | - | |
1941 | | - | |
1942 | | - | |
1943 | | - | |
1944 | | - | |
1945 | | - | |
1946 | | - | |
1947 | | - | |
1948 | | - | |
1949 | | - | |
1950 | | - | |
1951 | | - | |
1952 | | - | |
1953 | | - | |
1954 | | - | |
1955 | | - | |
1956 | | - | |
1957 | | - | |
1958 | | - | |
1959 | | - | |
1960 | | - | |
1961 | | - | |
1962 | | - | |
1963 | | - | |
1964 | 1925 | | |
1965 | 1926 | | |
1966 | 1927 | | |
| |||
1993 | 1954 | | |
1994 | 1955 | | |
1995 | 1956 | | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
1996 | 1968 | | |
1997 | 1969 | | |
1998 | 1970 | | |
1999 | 1971 | | |
2000 | 1972 | | |
2001 | | - | |
| 1973 | + | |
2002 | 1974 | | |
2003 | 1975 | | |
2004 | | - | |
| 1976 | + | |
2005 | 1977 | | |
2006 | 1978 | | |
2007 | 1979 | | |
| |||
0 commit comments