harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy, Jing Lv (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4616) [classlib][luni]the seed of java.util.Random is not radmon enough itself
Date Fri, 10 Aug 2007 07:45:42 GMT
[classlib][luni]the seed of java.util.Random is not radmon enough itself

                 Key: HARMONY-4616
                 URL: https://issues.apache.org/jira/browse/HARMONY-4616
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Jimmy, Jing Lv

two Random objects, though create at a time, should also generate different results. RI do
exactly like this but Harmony use system current time as seed,  two Random may create at the
same system current time in milliseconds, have the same seed,  and will generate the same
result, it can be fixed adding another random variable, like hashcode.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message