[GitHub] commons-validator pull request: Field does not synchronize iterati...

2015-12-27 Thread emopers
GitHub user emopers opened a pull request: https://github.com/apache/commons-validator/pull/4 Field does not synchronize iteration on synchronized list In Field.java:908, the synchronized list `dependencyList` is iterated in an unsynchronized manner, but according to the [Oracl

Re: [Math] "BitsStreamGenerator" as base class for all RNGs

2015-12-27 Thread Gilles
Do we attempt to make the RNGs thread-safe? It would mean that the "setSeed" methods must be made "synchronized". "Not a problem", there is a "SynchronizedRandomGenerator" wrapper. Gilles - To unsubscribe, e-mail: dev-unsubs

Re: [Math] "BitsStreamGenerator" as base class for all RNGs

2015-12-27 Thread Gilles
On Sun, 27 Dec 2015 11:15:42 -0700, Phil Steitz wrote: On 12/27/15 6:51 AM, Gilles wrote: On Sun, 27 Dec 2015 12:48:08 +0100, Gilles wrote: Hi. [...] BitStreamGenerator uses the more standard int next(int bits). Note that we have *no* internal direct implementations of AbstractRandomGenerator

Re: [Math] "BitsStreamGenerator" as base class for all RNGs (Was: New base class for all RNGs)

2015-12-27 Thread Phil Steitz
On 12/27/15 6:51 AM, Gilles wrote: > On Sun, 27 Dec 2015 12:48:08 +0100, Gilles wrote: >> Hi. >> [...] BitStreamGenerator uses the more standard int next(int bits). Note that we have *no* internal direct implementations of AbstractRandomGenerator, while BitStreamGenerator

Re: [Math] New base class for all RNGs

2015-12-27 Thread Phil Steitz
On 12/26/15 4:07 PM, Gilles wrote: > On Sat, 26 Dec 2015 15:32:04 -0700, Phil Steitz wrote: >> On 12/26/15 10:52 AM, Gilles wrote: >>> Hi. >>> >>> There are currently two RNG hierarchies: "AbstractRandomGenerator" >>> and >>> "BitsStreamGenerator". They both implement the "RandomGenerator" >>> inte

Re: [Math] New base class for all RNGs

2015-12-27 Thread Phil Steitz
On 12/26/15 4:52 PM, Gilles wrote: > On Sat, 26 Dec 2015 15:32:04 -0700, Phil Steitz wrote: >> On 12/26/15 10:52 AM, Gilles wrote: >>> Hi. >>> >>> There are currently two RNG hierarchies: "AbstractRandomGenerator" >>> and >>> "BitsStreamGenerator". They both implement the "RandomGenerator" >>> inte

Re: [Math] "BitsStreamGenerator" as base class for all RNGs (Was: New base class for all RNGs)

2015-12-27 Thread Gilles
On Sun, 27 Dec 2015 12:48:08 +0100, Gilles wrote: Hi. [...] BitStreamGenerator uses the more standard int next(int bits). Note that we have *no* internal direct implementations of AbstractRandomGenerator, while BitStreamGenerator has worked very nicely as a root for good PRNGs. Something imp

[Math] "BitsStreamGenerator" as base class for all RNGs (Was: New base class for all RNGs)

2015-12-27 Thread Gilles
Hi. [...] BitStreamGenerator uses the more standard int next(int bits). Note that we have *no* internal direct implementations of AbstractRandomGenerator, while BitStreamGenerator has worked very nicely as a root for good PRNGs. Something implicit in "BitStreamGenerator": the maximum number o