commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Commented] (TEXT-34) Add class to generate random strings
Date Mon, 19 Dec 2016 20:27:58 GMT


Gilles commented on TEXT-34:

public class RandomStringBuilder implements Builder<String> {

     * Default source of randomness
    private static final Random DEFAULT_RANDOM = new Random();

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:
>             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
> 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

View raw message