You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2020/08/25 14:18:00 UTC

[jira] [Created] (LANG-1605) Deprecate the "RandomStringUtils" class

Gilles Sadowski created LANG-1605:
-------------------------------------

             Summary: Deprecate the "RandomStringUtils" class
                 Key: LANG-1605
                 URL: https://issues.apache.org/jira/browse/LANG-1605
             Project: Commons Lang
          Issue Type: Sub-task
            Reporter: Gilles Sadowski
             Fix For: 4.0


The [Commons Text|http://commons.apache.org/proper/commons-text/] component contains [utilities|https://gitbox.apache.org/repos/asf?p=commons-text.git;a=blob;f=src/main/java/org/apache/commons/text/RandomStringGenerator.java;h=d8e38e4614dba548ef764225b87626f3a4cda434;hb=HEAD] that overlap with class [RandomStringUtils|https://gitbox.apache.org/repos/asf?p=commons-lang.git;a=blob;f=src/main/java/org/apache/commons/lang3/RandomStringUtils.java;h=0d6df4eed0d91bbd32ad378c28400fdf049ee542;hb=HEAD] in [Lang].

Duplication could be avoided by moving possibly missing functionality from [Lang] to [Text]. The additional bonus is that [Text] allows for choosing the source of randomness, while [Lang] uses the (weak and slow) {{java.util.Random}} class.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)