commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19880] New: - [lang] patch and test case fixing problem with RandomStringUtils.random()
Date Tue, 13 May 2003 07:08:28 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19880>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19880

[lang] patch and test case fixing problem with RandomStringUtils.random()

           Summary: [lang] patch and test case fixing problem with
                    RandomStringUtils.random()
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: phil@steitz.com


When a set of characters is supplied to RandomStringUtils.random(), the last
character in the set never appears in generated strings.  

Attaching patch and test case showing failure.

The test case generates 100 6-character strings from a 3-character set and
compares the observed frequency of occurrence of each of the characters in the
set with expectation assuming purely random selection.  Uses a chi-square test.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message