fix iteration over random devices

Actually iterate over the various random devices. Fixes a infinite loop on
startup when /dev/urandom isn't readable. Patch by Matt Kraai on Debian bug
491270, closes #333

Signed-off-by: Lennart Poettering <lennart@poettering.net>
This commit is contained in:
Sjoerd Simons 2008-08-03 12:45:35 +01:00 committed by Lennart Poettering
parent 065e7644ac
commit 98fbd24d62

View file

@ -77,6 +77,8 @@ static int random_proper(void *ret_data, size_t length) {
if (ret == 0)
break;
device++;
}
return ret;