[kaffe] SecureRandomTest failed

Ito Kazumitsu ito.kazumitsu at hidec.co.jp
Wed Jul 20 19:41:31 PDT 2005


> Today's regression test failure:
> 
> kaz at ph$ cat test/regression/SecureRandomTest.fail
> java.lang.Error: The "secure" random isn't! : lpc=  0 lpc2 = 20 data = 8bc7ec02ec7c04f87a13ec6120616ead831baeaf

I am afraid something has changed so that Security.getProviders() returns

    gnu.java.security.provider.Gnu: name=GNU version=1.0

  before

    kaffe.security.provider.Kaffe: name=KAFFE version=1.0

With an older kaffe whose ChangeLog head is
   2005-06-29  Guilhem Lavaux  <guilhem at kaffe.org>,
with which SecureRandomTest passed, I can reproduce the error
by forcing SecureRandomTest to use gnu.java.security.provider.Gnu.

Change the lines in SecureRandomTest.java that read

	sr = SecureRandom.getInstance("SHA1PRNG");
to
	sr = SecureRandom.getInstance("SHA1PRNG", "GNU");

and you will see the same error.




More information about the kaffe mailing list