We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c908497 commit 3f444a5Copy full SHA for 3f444a5
Changelog.txt
@@ -1,4 +1,6 @@
1
2
+1.0 - fixed bug in the algorithm allocating bits from the middle when
3
+ the delta was only 1 bit
4
0.9 - fixed bug centermost algorithm :
5
at the very first round the bit following the center for the even
6
number of bits was not picked
ipv6gen.pl
@@ -393,7 +393,12 @@ ()
393
$str = reverse $str;
394
$str = $tmp . $str;
395
} else {
396
- $str = $str . "1";
+ # This will take care of the delta == 1 case
397
+ if ($i == 0) {
398
+ $str = "1";
399
+ } else {
400
+ $str = $str . "1";
401
+ }
402
$str = &zero_pad($str, $central_bit, 1);
403
}
404
$str = &zero_pad($str, $delta, 0);
0 commit comments