Re: [LANG] Method to return random byte array?

2013-06-13 Thread Duncan Jones
On 13 June 2013 21:26, Phil Steitz wrote: > On 6/13/13 1:03 AM, Duncan Jones wrote: >> Hi, >> >> A piece of code I write far too often is: >> >> == >> public static byte[] getRandomBytes(int length) { >> // validate length is non-negative >> >> byte[] result = new byte[length]; >> RANDOM.

[continuum] BUILD FAILURE: Apache Commons - Apache Commons Chain :: Parent - Project build using Java 1.6 (-Prelease does not work for multimodule poms)

2013-06-13 Thread Continuum@vmbuild
Online report : http://vmbuild.apache.org/continuum/buildResult.action?buildId=27125&projectId=69 Build statistics: State: Failed Previous State: Ok Started at: Thu 13 Jun 2013 21:20:01 + Finished at: Thu 13 Jun 2013 21:20:43 + Total time: 41s Build Trigger: Schedule Build N

Re: [LANG] Method to return random byte array?

2013-06-13 Thread Phil Steitz
On 6/13/13 1:03 AM, Duncan Jones wrote: > Hi, > > A piece of code I write far too often is: > > == > public static byte[] getRandomBytes(int length) { > // validate length is non-negative > > byte[] result = new byte[length]; > RANDOM.nextBytes(result); > return result; > } > == > >

Re: svn commit: r1492833 - in /commons/proper/chain/trunk/configuration/xml/src/test: java/org/apache/commons/chain2/config/xml/ resources/org/apache/commons/chain2/config/xml/

2013-06-13 Thread Benedikt Ritter
I'm still not really satisfied, since the only thing thats different between XmlConfigParserTestCase and XmlConfigParser2TestCase is the config location… I'm thinking about using a parameterized test. This will work as long the two config define exactly the same catalogs. WDYT? Benedikt Am 13

[Commons Wiki] Update of "ReleaseDeployment" by sebbapache

2013-06-13 Thread Apache Wiki
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Commons Wiki" for change notification. The "ReleaseDeployment" page has been changed by sebbapache: https://wiki.apache.org/commons/ReleaseDeployment?action=diff&rev1=6&rev2=7 These are deployed to the Nexus staging ar

[LANG] Method to return random byte array?

2013-06-13 Thread Duncan Jones
Hi, A piece of code I write far too often is: == public static byte[] getRandomBytes(int length) { // validate length is non-negative byte[] result = new byte[length]; RANDOM.nextBytes(result); return result; } == Is there a place for something like this in Commons Lang? Or, bet

Re: [compress] Support for strong encryption in zip files?

2013-06-13 Thread Stefan Bodewig
On 2013-06-12, Siegfried Goeschl wrote: > Hi folks, > don't know if this was already mentioned but providing strong > encryption causes administrative head-ache Actually, it doesn't. All that has to be done, is editing a page in the CMS, adding a notice to the README and sending a single email.