projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
065e764
)
fix iteration over random devices
author
Sjoerd Simons
<sjoerd@luon.net>
Sun, 3 Aug 2008 11:45:35 +0000
(12:45 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 3 Aug 2008 14:46:21 +0000
(16:46 +0200)
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>
src/pulsecore/random.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/random.c
b/src/pulsecore/random.c
index
5deac37
..
da38106
100644
(file)
--- a/
src/pulsecore/random.c
+++ b/
src/pulsecore/random.c
@@
-77,6
+77,8
@@
static int random_proper(void *ret_data, size_t length) {
if (ret == 0)
break;
+
+ device++;
}
return ret;