Project: Tomcat
Bug 46866 Seed from current time is useless
Reported: 2009-03-16 21:34:33 | Status: resolved fixed

fgrep -r 'new Random(System.currentTimeMillis())' . Gives 7 places where Random initialized with seed = currentTimeMillis. This is unnecessary, because better seed initialization happens in the default Random constructor.

Files changed in fix:
java/org/apache/catalina/core/StandardServer.java java/org/apache/catalina/tribes/util/UUIDGenerator.java test/org/apache/catalina/tribes/demos/LoadTest.java test/org/apache/catalina/tribes/demos/MapDemo.java test/org/apache/catalina/tribes/test/channel/TestDataIntegrity.java test/org/apache/catalina/tribes/test/channel/TestMulticastPackages.java test/org/apache/catalina/tribes/test/channel/TestRemoteProcessException.java test/org/apache/catalina/tribes/test/channel/TestUdpPackages.java test/org/apache/catalina/tribes/test/io/TestSenderConnections.java