[jira] Created: (MATH-208) Random package does not support classes derived from java.util.Random

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (MATH-208) Random package does not support classes derived from java.util.Random

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Random package does not support classes derived from java.util.Random
---------------------------------------------------------------------

                 Key: MATH-208
                 URL: https://issues.apache.org/jira/browse/MATH-208
             Project: Commons Math
          Issue Type: Wish
            Reporter: Michiel Kalkman
            Priority: Trivial


JDK 1.5 introduces SecureRandom, see http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html.

However, it seems impossible to use this class (or any other java.util.Random derived instance) in combination with commons math random functionality.

Is it possible to adapt JDKRandomGenerator to have a constructor accepting any java.util.Random instance ?

I guess JDKRandomGenerator can be more or less adapted with code from RandomAdaptor (which accepts RandomGenerators btw, confusing !).



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


[jira] Closed: (MATH-208) Random package does not support classes derived from java.util.Random

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/MATH-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phil Steitz closed MATH-208.
----------------------------

    Resolution: Invalid

This is a question for the user list.  First have a look at the user guide, in particular
http://commons.apache.org/math/userguide/random.html
and the section on pluggability. RandomDataImpl, in its default implementation, provides "nextSecureXxx" methods using SecureRandom.  

Reopen if I am missing the point here - i.e., there is something you want to do that cannot be accomplished with the current API.

> Random package does not support classes derived from java.util.Random
> ---------------------------------------------------------------------
>
>                 Key: MATH-208
>                 URL: https://issues.apache.org/jira/browse/MATH-208
>             Project: Commons Math
>          Issue Type: Wish
>            Reporter: Michiel Kalkman
>            Priority: Trivial
>
> JDK 1.5 introduces SecureRandom, see http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html.
> However, it seems impossible to use this class (or any other java.util.Random derived instance) in combination with commons math random functionality.
> Is it possible to adapt JDKRandomGenerator to have a constructor accepting any java.util.Random instance ?
> I guess JDKRandomGenerator can be more or less adapted with code from RandomAdaptor (which accepts RandomGenerators btw, confusing !).

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

LightInTheBox - Buy quality products at wholesale price