You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org> on 2007/08/10 09:45:42 UTC
[jira] Created: (HARMONY-4616) [classlib][luni]the seed of
java.util.Random is not radmon enough itself
[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.
[jira] Resolved: (HARMONY-4616) [classlib][luni]the seed of
java.util.Random is not radmon enough itself
Posted by "Leo Li (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leo Li resolved HARMONY-4616.
-----------------------------
Resolution: Fixed
Hi, Jimmy
Patch applied at r564535. Thank you for your improvement. Please verify whether the problem is resolved as you expected.
Good luck!
Leo.
> [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
> Assignee: Leo Li
> Attachments: Harmony4616.diff
>
>
> 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.
[jira] Assigned: (HARMONY-4616) [classlib][luni]the seed of
java.util.Random is not radmon enough itself
Posted by "Leo Li (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leo Li reassigned HARMONY-4616:
-------------------------------
Assignee: Leo Li
> [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
> Assignee: Leo Li
> Attachments: Harmony4616.diff
>
>
> 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.
[jira] Updated: (HARMONY-4616) [classlib][luni]the seed of
java.util.Random is not radmon enough itself
Posted by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jimmy, Jing Lv updated HARMONY-4616:
------------------------------------
Attachment: Harmony4616.diff
Hi,
Would you please try my patch? Thanks!
Best Regards,
Jimmy
> [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
> Attachments: Harmony4616.diff
>
>
> 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.