Bug 46866

Summary: Seed from current time is useless
Product: Tomcat 6 Reporter: Stepan Koltsov <yozh>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: default   
Hardware: Macintosh   
OS: Mac OS X 10.3   

Description Stepan Koltsov 2009-03-16 21:34:33 UTC
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.
Comment 1 Mark Thomas 2009-03-26 04:16:43 UTC
Thanks for the report.

This has been fixed in trunk and have been proposed for 6.0.x
Comment 2 Mark Thomas 2009-04-07 12:26:00 UTC
This has been applied to 6.0.x and will be included in 6.0.20 onwards.