commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [LANG] Method to return random byte array?
Date Sat, 15 Jun 2013 14:49:57 GMT
I thought 2.6 had such a class and we got rid of it.

G


On Sat, Jun 15, 2013 at 9:58 AM, Duncan Jones <duncan@wortharead.com> wrote:

> On 14 June 2013 07:55, Duncan Jones <duncan@wortharead.com> wrote:
> > On 13 June 2013 21:26, Phil Steitz wrote:
> >> On 6/13/13 1:03 AM, Duncan Jones wrote:
> <snip>
> >
> >> I am not sure where this little method would fit in [lang]; but it might
> >> make sense to add there in the simple form above (with RANDOM
> >> static, I assume).
> >
> > Indeed, I had assumed any addition to [lang] would just use a standard
> > source of randomness (i.e. a static Random or SecureRandom instance).
> > However, I'm struggling to see an existing class that could
> > accommodate the functionality and creating a new "RandomUtils" class
> > feels a bit heavyweight, unless others can think of additional methods
> > that would be useful.
>
> I gave it some further thought and realised there were some other
> methods that would prove useful in such a "RandomUtils" class. I've
> created https://issues.apache.org/jira/browse/LANG-900 and attached an
> implementation. I welcome comments.
>
> Duncan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message