commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles <>
Subject [Math] How to test "SecureRandom" (Was: [Math] Change on branch "develop": [...] Failing)
Date Tue, 17 May 2016 14:53:08 GMT

On Tue, 17 May 2016 14:18:28 +0000 (UTC), Apache Jenkins Server wrote:
> The Apache Jenkins build system has built Commons Math
> DeveloperBranch (build #17)
> Status: Still Failing
> Check console output at
> to
> view the results.

Caused by failing unit tests that involve "" 
the source of randomness.

The tests use a _fixed_ seed, yet the output of the RNG is random.
On my machine, the "getAlgorithm()" method returns "NativePRNG"; I 
that it is a non-deterministic generator.

IIUC, the failure indicates that the RNG is not quite uniform (the 
fail much more often that the 0.01 probability reported by the 

Should I just delete the "RandomUtilsDataGeneratorJDKSecureRandomTest"?
Other suggestions?

Thanks in advance,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message