miijs 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -948,7 +948,10 @@ module.exports={
948
948
  miiBin+="1000101011010010000001101000011100011000110001100100011001100110010101100111111110111100000001110101110001000101011101100000001110100100010000000000000000000000".slice(0,8*8);
949
949
  miiBin+=mii.info.type==="Special"?"0":"1";
950
950
  miiBin+="0000000";
951
- miiBin+="0111111110111100000001110101110001000101011101100000001110100100010000000000000000000000";
951
+ for(var i=0;i<4;i++){
952
+ miiBin+=Math.floor(Math.random()*255).toString(2).padStart(8,"0");
953
+ }
954
+ miiBin+="01000101011101100000001110100100010000000000000000000000";
952
955
  miiBin+=mii.info.birthday.toString(2).padStart(5,"0").slice(2,5);
953
956
  miiBin+=mii.info.birthMonth.toString(2).padStart(4,"0");
954
957
  miiBin+=mii.info.gender==="Male"?"0":"1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miijs",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "Read, Edit, Write, and make Special Miis from a Wiimote binary file or 3DS QR Code to a binary file or QR code",
5
5
  "main": "index.js",
6
6
  "scripts": {