commons-dev mailing list archives

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

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
> https://builds.apache.org/job/Commons%20Math%20DeveloperBranch/17/ to
> view the results.

Caused by failing unit tests that involve "java.security.SecureRandom" 
as
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 
guess
that it is a non-deterministic generator.

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

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


Thanks in advance,
Gilles



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message