You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2015/04/16 12:51:23 UTC
[Bug 54453] Performance enhancements : Replace Random by
ThreadLocalRandom in __Random function
https://bz.apache.org/bugzilla/show_bug.cgi?id=54453
--- Comment #11 from Andrey Pokhilko <ap...@ya.ru> ---
This fix introduced issue, on Jmeter 2.12 function __random(1,1) works, on 2.13
now works. It is because the change is:
- long rand = min + (long) (Math.random() * (max - min + 1));
+ long rand = ThreadLocalRandom.current().nextLong(min, max);
and new version lost "+1" boundary shift...
--
You are receiving this mail because:
You are the assignee for the bug.