tag 491270 patch
thanks

It looks to me like the while loop is supposed to try reading from
/dev/urandom and /dev/random, stopping once it succeeds, but the code
to increment the iterator is missing, so it keeps trying /dev/urandom
over and over again.

The attached patch increments the iterator (i.e., device) each time
through the loop, which should fix this problem, but I've only tested
that it compiles.

-- 
Matt                                                 http://ftbfs.org/
diff -ru pulseaudio-0.9.10~/src/pulsecore/random.c 
pulseaudio-0.9.10/src/pulsecore/random.c
--- pulseaudio-0.9.10~/src/pulsecore/random.c   2008-07-31 00:45:53.000000000 
-0700
+++ pulseaudio-0.9.10/src/pulsecore/random.c    2008-07-31 00:46:08.000000000 
-0700
@@ -75,6 +75,8 @@
 
         if (ret == 0)
             break;
+
+       device++;
     }
 
     return ret;

Reply via email to