Bug#573989: unicode-screensaver: repeats same characters again

2010-03-22 Thread Stephan Renatus
Hello, On Sun, Mar 21, 2010 at 11:27:19PM +0100, Joachim Breitner wrote: > > What is the correct way to initialize the seed? > I was wrong about that, xscreensaver must somehow already take care of this. (I tried adding "srandom(time(NULL))" to unicode_init() but there's an error indicating that

Bug#573989: unicode-screensaver: repeats same characters again

2010-03-21 Thread Stephan Renatus
Hello Joachim, hello Brian, I noticed the same behaviour of unicode-screensaver and tried to fix it -- I think what might have been missing was the initializiation of the PRNG with some seed. The following patch works around this issue by using arc4random_uniform() instead of random() (accordi