commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <>
Subject [jira] [Commented] (MATH-963) Interface "RandomGenerator" is missing "nextLong(long)" method
Date Fri, 05 Apr 2013 02:04:15 GMT


Phil Steitz commented on MATH-963:

While you can't use a RandomGenerator instance directly to replace a Random, you can use a
RandomAdaptor.  That is really what led to tearing off the interface from Random.  I use this
so would not like to drop the interface.

I am OK with adding the method (in 4.0) if someone can come up with a good default impl to
be added to AbstractRandomGenerator.  "Good" means similar to what AbstractBitstreamGenerator
> Interface "RandomGenerator" is missing "nextLong(long)" method
> --------------------------------------------------------------
>                 Key: MATH-963
>                 URL:
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.2
>            Reporter: Gilles
>            Priority: Trivial
>              Labels: api-change
> There is a method "nextInt(int)" but not "nextLong(long)".
> The "BitsStreamGenerator" class already implements it.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message