You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/05/13 09:08:28 UTC
DO NOT REPLY [Bug 19880] New: -
[lang] patch and test case fixing problem with RandomStringUtils.random()
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