icnhoukdsiih / testlib

Automatically exported from code.google.com/p/testlib
0 stars 0 forks source link

Error in iwgen sample #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open sample and read comments

What is the expected output? What do you see instead?
 * If parameter "weight" < 0 then you can think about it as code like this:
 * <code>
 * result = rnd.next(1, 1000000);
 * for (int i = 0; i < weight; i++)
 *     result = min(result, rnd.next(1, 1000000);
 * </code> 
May be error in "i<weight" statement. It should look like "i<(-weight)"

What version of the product are you using? On what operating system?
0.6.4

Please provide any additional information below.

Original issue reported on code.google.com by progoc...@gmail.com on 20 Jan 2011 at 7:52

GoogleCodeExporter commented 8 years ago
Right, fixed.

Original comment by mirzayan...@gmail.com on 12 Feb 2011 at 11:29