You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/05/08 17:55:12 UTC

[jira] [Commented] (LANG-1224) Extend RandomStringUtils with methods that generate strings between a min and max length

    [ https://issues.apache.org/jira/browse/LANG-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15275646#comment-15275646 ] 

ASF GitHub Bot commented on LANG-1224:
--------------------------------------

Github user PascalSchumacher commented on the pull request:

    https://github.com/apache/commons-lang/pull/101#issuecomment-217736263
  
    To quote Gary Gregory from https://issues.apache.org/jira/browse/LANG-1224
    
    >It seems really confusing that some new APIs would use an inclusive max while existing APIs use an exclusive max.
    
    Current APIs with exclusive max:
    
        random(int, int, int, boolean, boolean)
        random(int, int, int, boolean, boolean, char...)
        random(int, int, int, boolean, boolean, char[], Random)
    
    So for the sake of consistency with the existing methods and the java random api, an exclusive max should be used. 



> Extend RandomStringUtils with methods that generate strings between a min and max length
> ----------------------------------------------------------------------------------------
>
>                 Key: LANG-1224
>                 URL: https://issues.apache.org/jira/browse/LANG-1224
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>            Reporter: Pascal Schumacher
>
> As suggested in [https://github.com/apache/commons-lang/pull/101/commits/22bef8fe74760649805a921a0f8d3d536683abdb]



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