[kaffe] SHA1PRNG fix
Timothy Stack
stack@cs.utah.edu
Tue, 4 Jun 2002 09:18:15 -0600 (MDT)
> hi,
>
> I attached a patch for SHA1PRNG.java, it still wasn't quite doing what it
> was supposed to. Also, i think i forgot to mention that this was based on
> Classpath's (broken) code, so the copyright should probably be gpl'ed.
oops, i whiffed again...
in libraries/javalib/kaffe/security/provider/SHA1PRNG.java:
> @@ -112,6 +110,22 @@
> this.data,
> SEED_SIZE,
This is supposed to be zero. So it should look like:
System.arraycopy(this.seed,
0,
this.data,
0,
SEED_SIZE);
atleast, thats how i think its supposed to work.
thanks,
tim stack