Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7FAE22009F5 for ; Sun, 8 May 2016 19:55:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7B1901609B2; Sun, 8 May 2016 17:55:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EFF61160A06 for ; Sun, 8 May 2016 19:55:13 +0200 (CEST) Received: (qmail 18041 invoked by uid 500); 8 May 2016 17:55:13 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 17868 invoked by uid 99); 8 May 2016 17:55:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 May 2016 17:55:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CDCAE2C1F5D for ; Sun, 8 May 2016 17:55:12 +0000 (UTC) Date: Sun, 8 May 2016 17:55:12 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LANG-1224) Extend RandomStringUtils with methods that generate strings between a min and max length MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 08 May 2016 17:55:14 -0000 [ 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)