On Sat, Nov 8, 2008 at 8:02 AM, Juiceman <juiceman69 at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>> Modified: trunk/freenet/test/freenet/support/Base64Test.java
>> ===================================================================
>> --- trunk/freenet/test/freenet/support/Base64Test.java  2008-11-07 18:28:00 
>> UTC (rev 23380)
>> +++ trunk/freenet/test/freenet/support/Base64Test.java  2008-11-07 18:37:39 
>> UTC (rev 23381)
>> @@ -16,10 +16,11 @@
>>
>>  package freenet.support;
>>
>> -import junit.framework.TestCase;
>>  import java.util.Arrays;
>>  import java.util.Random;
>>
>> +import junit.framework.TestCase;
>> +
>>  /**
>>  * Test case for {@link freenet.support.Base64} class.
>>  *
>> @@ -165,7 +166,7 @@
>>         */
>>        public void testRandom() throws IllegalBase64Exception {
>>                int iter;
>> -               Random r = new Random();
>> +               Random r = new Random(1234);
>>                for (iter = 0; iter                         byte[] b = new 
>> byte[r.nextInt(64)];
>>                        for (int i = 0; i < b.length; i++)
>
> Was this 1234 intended instead of 12345 like many of the others?
>

no reason, just a typo or something.
fix it if you think 12345 generate a better random number then 1234 do.

Reply via email to