中文乱码的根源在于 windows 基于一些历史原因无法全面支持 utf-8 编码格式,并且也无法通过有效手段令其全面支持。
- 安装
/* | |
* Recommend run with node v8.9.x or higher version | |
* npm install lodash crypto-js request-promise request | |
* node hack.js | |
*/ | |
const version = 5 // the version of t1t | |
const score = 370 // the score you wanna get | |
const playTimeSeconds = score * 0.01 // simulate the playing time (seconds) |
<?php | |
/** | |
* 计算PHP中各种随机函数的香农熵 | |
*/ | |
define('DATA_MAX_BITS', 1 * 1024); | |
define('DATA_MAX_BYTES', DATA_MAX_BITS / 8); | |
define('TEST_TIMES', 100); | |
/** |