That might help if the random class is loaded only once. If the different tests each use a new class loader (seems unlikely) then the static stuff will be executed multiply and the problem will be retained.
On Sun, Jan 17, 2010 at 11:55 AM, Sean Owen <sro...@gmail.com> wrote: > Am I right that running tests in 1 JVM instead of n JVMs helps > mitigate this? because I just committed that change. > > On Sun, Jan 17, 2010 at 7:49 PM, Ted Dunning <ted.dunn...@gmail.com> > wrote: > > It doesn't affect the random numbers being generated. > > > > But it does eat bits of entropy from /dev/random. That can then get > starved > > and block until more entropy is derived. Since the reading is done in a > > static block instead of on construction, the cost can't be avoided. > > > -- Ted Dunning, CTO DeepDyve