You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gilles <gi...@harfang.homelinux.org> on 2016/05/17 14:53:08 UTC
[Math] How to test "SecureRandom" (Was: [Math] Change on branch
"develop": [...] Failing)
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