Normand Briere
2019-05-01 a742f6cebf1d471217d836e07934e5c02c22b6db
RandomNode.java
....@@ -66,7 +66,7 @@
6666 // if (!link2master && rnd != -1)
6767 // new Exception().printStackTrace();
6868
69
- if (link2master && rnd != -1) // freeze current value
69
+ if (!random && rnd != -1) // freeze current value
7070 return super.reserve(rnd);
7171
7272 if (firstchoice == 0)
....@@ -95,7 +95,7 @@
9595
9696 //(int)(Math.random()*super.size());
9797 //globalcount++;
98
- gcount += GraphreeD.mix3(rnd+12345,firstchoice*12345,gcount);
98
+ gcount += GrafreeD.mix3(rnd+12345,firstchoice*12345,gcount);
9999
100100 gcount &= 0x7fffffff;
101101
....@@ -142,7 +142,7 @@
142142 super.get(rnd).count++;
143143 //assert (child.count >= 0);
144144
145
- if (!link2master) // volatile value
145
+ if (random) // volatile value
146146 rnd = -1;
147147 }
148148