reassign 335105 kernel close 335105 2.6.5 thanks On Sun, Dec 11, 2005 at 10:24:56AM +0000, Andrew Suffield wrote: >My bet is that it's this kernel bug: > > I don't know if you've been following, but it was recently discoverd that on > smp, if multiple processes read from /dev/urandom at the same time, they can > get the same data. Theodore Tytso posted a patch to fix this for 2.6, and > someone else told me this problem has existed all the way back to 1.3. > >Fixed in 2.4.29 and 2.6.5. What kernel version have you got there? If >it's 2.4.27 (sarge) then I think we have our problem found.
Thanks Andrew, This does appear to be the cause of the problem. I tracked down the original patch which added the fork/rand test. The intent of the addition is to test rand (specifically the implicit srand on first call) rather than fork: a change in 5.8.1 to randomise hash ordering was causing an implicit call of srand when perl was started, causing a behaviour change: $ perl -le 'fork; print rand' was printing the same value twice. Re-assigning to kernel and closing. --bod -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]