commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: RandomStringUtils minor extension
Date Thu, 30 Jan 2003 19:38:50 GMT

Looks good to me Tomasz.

By repetitive results, you were expecting the randomness to repeat each
time you ran the tests?

Hen

On Thu, 30 Jan 2003, Tomasz Skutnik wrote:

> Hi all.
>
> I've used RandomStringUtils lately for some of my benchmarking code, and
> found that it's impossible to achive repetitive results with.
> I've scratched my own itch, and here's a really ilttle workaround I've
> made: since all methods sooner or later use
> random(int,int,int,boolean,boolean,char[]), I've made it to take one
> more param (of java.util.Random type) as source of randomness, and left
> old signature invoke new method with RANDOM as one. I've also added one
> little test improvement (yeah, yeah, I know it's just lousy 3-liner).
> Everything is in attatched patch file.
>
> Feel free to apply or dump it as you wish.
>
> Cheers.
>
> Scooter
>
> --
>
> Tomasz Skutnik, R&D Director, www.e-point.pl
> tel +48 (22) 853 48 30, mob +48 501 555 705, fax +48 (22) 853 48 30
> e-point S.A., ul. Filona 16, 02-658 Warsaw, Poland
> PGP/GPG public key: http://scooter.ext.e-point.pl/tomasz.skutnik.gpg
>


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


Mime
View raw message