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

Gilles commented on TEXT-34:
----------------------------

{code}
public class RandomStringBuilder implements Builder<String> {

    /**
     * Default source of randomness
     */
    private static final Random DEFAULT_RANDOM = new Random();
{code}

I recall another fairly recent discussion where the problems of having a shared 
RNG instance were pointed out.


> Add class to generate random strings
> ------------------------------------
>
>                 Key: TEXT-34
>                 URL: https://issues.apache.org/jira/browse/TEXT-34
>             Project: Commons Text
>          Issue Type: New Feature
>            Reporter: Duncan Jones
>            Assignee: Duncan Jones
>
> The {{RandomStringUtils}} class will be deprecated in Commons Lang and reborn 
> in Commons Text.
> Because the original class has some complicated parameters and potentially 
> unnecessary capabilities, I'll simplify as I move it across. I'll also ensure 
> the class plays nicely with Unicode characters.



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

Reply via email to