You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2015/04/16 21:27:18 UTC

svn commit: r1674139 - in /jmeter/trunk: src/functions/org/apache/jmeter/functions/Random.java xdocs/changes.xml

Author: pmouawad
Date: Thu Apr 16 19:27:18 2015
New Revision: 1674139

URL: http://svn.apache.org/r1674139
Log:
Bug 57825 - __Random function fails if min value is equal to max value (regression related to 54453)
Bugzilla Id: 57825

Modified:
    jmeter/trunk/src/functions/org/apache/jmeter/functions/Random.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/functions/org/apache/jmeter/functions/Random.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/functions/org/apache/jmeter/functions/Random.java?rev=1674139&r1=1674138&r2=1674139&view=diff
==============================================================================
--- jmeter/trunk/src/functions/org/apache/jmeter/functions/Random.java (original)
+++ jmeter/trunk/src/functions/org/apache/jmeter/functions/Random.java Thu Apr 16 19:27:18 2015
@@ -62,7 +62,7 @@ public class Random extends AbstractFunc
         long min = Long.parseLong(minimum.execute().trim());
         long max = Long.parseLong(maximum.execute().trim());
 
-        long rand = ThreadLocalRandom.current().nextLong(min, max);
+        long rand = ThreadLocalRandom.current().nextLong(min, max+1);
 
         String randString = Long.toString(rand);
 

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1674139&r1=1674138&r2=1674139&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Thu Apr 16 19:27:18 2015
@@ -106,6 +106,7 @@ Summary
 
 <h3>General</h3>
 <ul>
+    <li><bug>54826</bug>Don't fail on long strings in JSON responses when displaying them as JSON in View Results Tree.</li>
 </ul>
 <ch_section>Non-functional changes</ch_section>
 <ul>
@@ -134,15 +135,16 @@ Summary
 <h3>Timers, Assertions, Config, Pre- &amp; Post-Processors</h3>
 <ul>
 </ul>
-<!-- 
+
 <h3>Functions</h3>
 <ul>
+<li><bug>57825</bug>__Random function fails if min value is equal to max value (regression related to <bug>54453</bug>)</li>
 </ul>
 
 <h3>I18N</h3>
 <ul>
 </ul>
- -->
+
 <h3>General</h3>
     <li><bug>54826</bug>Don't fail on long strings in JSON responses when displaying them as JSON in View Results Tree.</li>
     <li><bug>57734</bug>Maven transient dependencies are incorrect for 2.13</li>