--- jsr166/src/main/java/util/Collections.java 2005/05/25 14:05:06 1.8 +++ jsr166/src/main/java/util/Collections.java 2005/05/27 03:44:18 1.9 @@ -408,9 +408,12 @@ public class Collections { * its list-iterator does not support the set operation. */ public static void shuffle(List list) { + if (r == null) { + r = new Random(); + } shuffle(list, r); } - private static Random r = new Random(); + private static Random r; /** * Randomly permute the specified list using the specified source of