You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Arul Nedumaran (JIRA)" <ji...@apache.org> on 2016/11/11 03:45:58 UTC

[jira] [Updated] (LANG-1284) RandomStringUtils' random method goes into an infinite loop

     [ https://issues.apache.org/jira/browse/LANG-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arul Nedumaran updated LANG-1284:
---------------------------------
    Description: 
The following code goes into an infinite loop.

{code}
RandomStringUtils.random(1, 0, 0, false, true, new char[]{ 'a' })
{code}

I know it doesn't make sense to pass letters=false and then a letter array, but a bug in the caller's code will make him fall into this trap.


  was:
The following code goes into an infinite loop.

{code}
RandomStringUtils.random(1, 0, 0, false, true, new char[]{ 'a' })
{code}

I know it doesn't make sense to pass letters=false and then an array, but a bug in the caller will fall into this trap.



> RandomStringUtils' random method goes into an infinite loop
> -----------------------------------------------------------
>
>                 Key: LANG-1284
>                 URL: https://issues.apache.org/jira/browse/LANG-1284
>             Project: Commons Lang
>          Issue Type: Bug
>            Reporter: Arul Nedumaran
>
> The following code goes into an infinite loop.
> {code}
> RandomStringUtils.random(1, 0, 0, false, true, new char[]{ 'a' })
> {code}
> I know it doesn't make sense to pass letters=false and then a letter array, but a bug in the caller's code will make him fall into this trap.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)